Class: Fangorn::StaticFile

Inherits:
Output
  • Object
show all
Defined in:
lib/fangorn/static_file.rb

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) ⇒ StaticFile

Returns a new instance of StaticFile.



5
6
7
8
# File 'lib/fangorn/static_file.rb', line 5

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