Method: Bundler::Index#local_search
- Defined in:
- lib/bundler/index.rb
permalink #local_search(query) ⇒ Object
[View source]
71 72 73 74 75 76 77 78 79 |
# File 'lib/bundler/index.rb', line 71 def local_search(query) case query when Gem::Specification, RemoteSpecification, LazySpecification, EndpointSpecification then search_by_spec(query) when String then specs_by_name(query) when Array then specs_by_name_and_version(*query) else raise "You can't search for a #{query.inspect}." end end |