Class: Fangorn::StaticFile
Instance Method Summary collapse
-
#initialize(input) ⇒ StaticFile
constructor
A new instance of StaticFile.
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 |