Skip to content

Instantly share code, notes, and snippets.

@pragmaticpat-zz
Created March 26, 2012 22:54
Show Gist options
  • Save pragmaticpat-zz/2210413 to your computer and use it in GitHub Desktop.
Save pragmaticpat-zz/2210413 to your computer and use it in GitHub Desktop.
hydrating nokogiri html object from a file in one line. cool!
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