method
new
v2_6_3 -
Show latest stable
- Class:
Gem::Commands::OpenCommand
new()public
No documentation available.
# File lib/rubygems/commands/open_command.rb, line 11
def initialize
super 'open', 'Open gem sources in editor'
add_option('-e', '--editor COMMAND', String,
"Prepends COMMAND to gem path. Could be used to specify editor.") do |command, options|
options[:editor] = command || get_env_editor
end
add_option('-v', '--version VERSION', String,
"Opens specific gem version") do |version|
options[:version] = version
end
end