lib/readability_parser/api/content.rb in readability_parser-0.0.3 vs lib/readability_parser/api/content.rb in readability_parser-0.0.4

- old
+ new

@@ -8,11 +8,11 @@ # Optionally pass the ID of an article as `id => "id"` in `options` to return the content for a specific DOM node # You can also pass a `max_pages` integer to set the maximum number of pages to parse and combine. Default is 25. # # @param url [String] The URL of an article to return the content for # @return [ReadabilityParser::Article] - def parse(url, options={}) - params = {:url => url} + def parse(url, options = {}) + params = { url: url } response = get('', params.merge(options)) ReadabilityParser::Article.new(response) end end # Content