Skip to content

Commit

Permalink
Working out a nokogiri idea
Browse files Browse the repository at this point in the history
  • Loading branch information
miketierney committed May 30, 2009
1 parent 0adb315 commit 86d7335
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nokogiri_css_search.rb
@@ -0,0 +1,9 @@
require 'nokogiri'

doc = Nokogiri::HTML(open('doc.html'))

selectors.each do |selector|
if doc.search(selector).empty?
@unused_selectors[selector] += 1
end
end

0 comments on commit 86d7335

Please sign in to comment.