Class: Cjoiner::Engines::Css

Inherits:
Engine
  • Object
show all
Defined in:
lib/cjoiner/engines/css.rb

Overview

engine for css files

Instance Attribute Summary

Attributes inherited from Engine

#engine

Instance Method Summary collapse

Methods inherited from Engine

#render

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