Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Gem::Commands::OpenCommand.new
new
lib/rubygems/commands/open_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/commands/open_command.rb, line 9
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
No documentation available