lib/ratebeer/search.rb
# Create method which generates new search instance and immediately runs
# a search.
#
Create method which generates new search instance and immediately runs
a search.
Create method which generates new search instance and immediately runs a search .
def search(query)
        s = new(query)
        { beers:      s.beers,
          breweries:  s.breweries }
      end
def search ( query ) s = new ( query ) { beers : s . beers , breweries : s . breweries } end
Create method which generates new search instance and immediately runs
a search.
Create method which generates new search instance and immediately runs a search .
query