lib/csscss/reporter.rb in csscss-0.0.1 vs lib/csscss/reporter.rb in csscss-0.1.0

- old
+ new

@@ -5,17 +5,15 @@ end def report(verbose = false) io = StringIO.new @redundancies.each do |selector_groups, declarations| - selector_groups = selector_groups.map {|selectors| "{#{selectors.selectors.join(", ")}}" } + selector_groups = selector_groups.map {|selectors| "{#{selectors}}" } last_selector = selector_groups.pop count = declarations.size io.puts %Q(#{selector_groups.join(", ")} and #{last_selector} share #{count} rule#{"s" if count > 1}) if verbose - declarations.each do |dec| - io.puts " - #{dec.property}: #{dec.value}" - end + declarations.each {|dec| io.puts " - #{dec}" } end end io.rewind io.read