lib/gsearch-parser.rb in gsearch-parser-0.3.3 vs lib/gsearch-parser.rb in gsearch-parser-0.3.4

- old
+ new

@@ -25,10 +25,13 @@ # Initialize variables @results = Array.new # Update the results list: (Fetch, Store, and Parse) updateResults("http://google.com/search?sourceid=chrome&q=#{query}") + + # Update next URI + updateNextURI end # Update the nextURI attribute def updateNextURI # Parse next result page link from the currently marked one @@ -84,14 +87,14 @@ return currentResults end # Parse the results from the next page and append to results list def nextResults - # Update nextURI - updateNextURI - # Update results updateResults(@nextURI) + + # Update nextURI + updateNextURI end # Iterator over results def each(&blk) @results.each(&blk)