lib/quorable.rb in quorable-0.1.2 vs lib/quorable.rb in quorable-0.1.3

- old
+ new

@@ -3,10 +3,10 @@ require 'pry' module Quorable BASE_URL = 'http://www.quora.com' - def feed(topic) + def self.feed(topic) doc = Nokogiri::HTML.parse(open("#{BASE_URL}/#{parameterize(topic)}")) paths = doc.css('.question_link').map { |link| link['href'] } end private \ No newline at end of file