lib/style_stats.rb in style_stats-0.0.1 vs lib/style_stats.rb in style_stats-0.1.0

- old
+ new

@@ -14,15 +14,28 @@ files = paths.map do |path| PathParser.new(path).files end.flatten @css = files.inject(Css.new) do |css, file| - css.merge!(Css.new(file)) + css.merge!(Css.new(file, css_options)) end end def render - Template.new(@css, @options).render + Template.new(@css, template_options).render + end + + private + def css_options + { + user_agent: @options[:user_agent] + } + end + + def template_options + { + format: @options[:format] + } end end require 'style_stats/version' require 'style_stats/path_parser'