Class: Rakyll::Compiler::Copy
- Inherits:
-
Object
- Object
- Rakyll::Compiler::Copy
- Includes:
- SetFilename
- Defined in:
- lib/rakyll/compiler/copy.rb
Instance Method Summary collapse
-
#initialize(source_filename, opts) ⇒ Copy
constructor
A new instance of Copy.
- #save ⇒ Object
Methods included from SetFilename
Constructor Details
#initialize(source_filename, opts) ⇒ Copy
Returns a new instance of Copy.
6 7 8 9 |
# File 'lib/rakyll/compiler/copy.rb', line 6 def initialize(source_filename, opts) @source_filename = source_filename set_filename(source_filename) end |
Instance Method Details
#save ⇒ Object
11 12 13 |
# File 'lib/rakyll/compiler/copy.rb', line 11 def save FileUtils.copy(@source_filename, @filename) end |