Flowdock
method

new

Importance_0
v2_4_6 - Show latest stable - 0 notes - Class: OpenCommand
new() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/commands/open_command.rb, line 11
  def initialize
    super 'open', 'Open gem sources in editor'

    add_option('-e', '--editor EDITOR', String,
               "Opens gem sources in EDITOR") do |editor, options|
      options[:editor] = editor || get_env_editor
    end
    add_option('-v', '--version VERSION', String,
               "Opens specific gem version") do |version|
      options[:version]  = version
    end
  end
Register or log in to add new notes.