fix syntax error
This commit is contained in:
@@ -7,7 +7,7 @@ class PopularSearchService
|
|||||||
@scale = scale
|
@scale = scale
|
||||||
end
|
end
|
||||||
|
|
||||||
def each_search(&block, limit = 100)
|
def each_search(limit = 100, &block)
|
||||||
fetch_data.scan(/(.+?) (\d+)\.0\n/).slice(0, limit).each(&block)
|
fetch_data.scan(/(.+?) (\d+)\.0\n/).slice(0, limit).each(&block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user