Sha256: 210ba13bc84b72fce706f3d5499ae04313b9bad67a6dbffc9d05baf339932489
Contents?: true
Size: 400 Bytes
Versions: 61
Compression:
Stored size: 400 Bytes
Contents
require 'rubygems' require 'nokogiri' dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')) require File.join(dir, 'httparty') require 'pp' class HtmlParserIncluded < HTTParty::Parser SupportedFormats.merge!('text/html' => :html) def html Nokogiri::HTML(body) end end class Page include HTTParty parser HtmlParserIncluded end pp Page.get('http://www.google.com')
Version data entries
61 entries across 60 versions & 9 rubygems