method
spec_for
v2_5_5 -
Show latest stable
- Class:
Gem::Commands::OpenCommand
spec_for(name)public
No documentation available.
# File lib/rubygems/commands/open_command.rb, line 74
def spec_for name
spec = Gem::Specification.find_all_by_name(name, @version).first
return spec if spec
say "Unable to find gem '#{name}'"
end