Class: Fangorn::Js

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

Constant Summary collapse

CACHE_BREAK =
SecureRandom.hex(4)
@@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) ⇒ Js

Returns a new instance of Js.



11
12
13
14
# File 'lib/fangorn/js.rb', line 11

def initialize(input)
  output = Output::dist? ? application_js : File.join(Output::dest, input.sub(File.join(Output::source, ''), ''))
  super input, output
end