Class: Drom::Client
Instance Method Summary collapse
Instance Method Details
#get(url) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/drom/client.rb', line 9 def get(url) begin page = self.class.get(url) Nokogiri::HTML(page) rescue SocketError => e print "SocketError" end end |