Skip to content

Instantly share code, notes, and snippets.

@JakeAustwick
Created November 3, 2011 22:27
Show Gist options
  • Save JakeAustwick/1338102 to your computer and use it in GitHub Desktop.
Save JakeAustwick/1338102 to your computer and use it in GitHub Desktop.
matches = doc.at_css("body").text.scan([/#include <\S+>/])
matches.each do |i|
print i
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment