Sha256: d996048d7c35ee1e0e3a7df5b90952a1c0bd4033485029bf17fdff1f3651bd12
Contents?: true
Size: 659 Bytes
Versions: 1
Compression:
Stored size: 659 Bytes
Contents
require 'erb' require 'oga' require 'open-uri' require 'css_parser' require 'json' require 'command_line_reporter' class StyleStats def initialize(paths, options = {}) paths = [paths] unless paths.is_a?(Array) @options = options files = paths.map do |path| PathParser.new(path).files end.flatten @css = files.inject(Css.new) do |css, file| css.merge!(Css.new(file)) end end def render Template.new(@css, @options).render end end require 'style_stats/version' require 'style_stats/path_parser' require 'style_stats/css' require 'style_stats/template' require 'style_stats/errors' require 'style_stats/cli'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
style_stats-0.0.1 | lib/style_stats.rb |