Class: Fangorn::Sass

Inherits:
Output show all
Defined in:
lib/fangorn/sass.rb

Constant Summary collapse

@@cleaned =
false

Instance Method Summary collapse

Methods inherited from Output

#create!, dest, dest=, dist!, dist?, env, env=, #get_config, make, #remove!, source, source=, #to_s

Constructor Details

#initialize(input) ⇒ Sass

Returns a new instance of Sass.



7
8
9
10
# File 'lib/fangorn/sass.rb', line 7

def initialize(input)
  output = Output::dist? ? application_css : File.join(Output::dest, input.sub(File.join(Output::source, ''), '')).sub(/sass$/, 'css')
  super input, output
end