Created
March 26, 2012 22:54
-
-
Save pragmaticpat-zz/2210413 to your computer and use it in GitHub Desktop.
hydrating nokogiri html object from a file in one line. cool!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File.open(source_file_name, "r") { |f| page = Nokogiri::HTML(f.read()) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment