Class: Cjoiner::Engines::Css
- Defined in:
- lib/cjoiner/engines/css.rb
Overview
engine for css files
Instance Attribute Summary
Attributes inherited from Engine
Instance Method Summary collapse
-
#initialize(opts) ⇒ Css
constructor
A new instance of Css.
Methods inherited from Engine
Methods included from Helpers::Files
#delete_file, #expand_path, #file, #file_exists, #load_yaml, #move_file, #on_windows, #read_file, #temp_file, #write_file
Constructor Details
#initialize(opts) ⇒ Css
Returns a new instance of Css.
7 8 9 10 11 12 13 |
# File 'lib/cjoiner/engines/css.rb', line 7 def initialize(opts) @engine = ::Sass::Engine.new(opts[:content], { :load_paths => opts[:paths], :style => opts[:style] || :expanded }).render end |