Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Commands::OpenCommand#open_gem
open_gem(name)
lib/rubygems/commands/open_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/commands/open_command.rb, line 59
def open_gem(name)
spec = spec_for name
return false unless spec
if spec.default_gem?
say "'#{name}' is a default gem and can't be opened."
return false
end
open_editor(spec.full_gem_path)
end
No documentation available