method

spec_for

Importance_0
v2_5_5 - Show latest stable - 0 notes - Class: OpenCommand
spec_for(name) 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 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
Register or log in to add new notes.