Class: Rakyll::Compiler::Copy

Inherits:
Object
  • Object
show all
Includes:
SetFilename
Defined in:
lib/rakyll/compiler/copy.rb

Instance Method Summary collapse

Methods included from SetFilename

#set_filename

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

#saveObject



11
12
13
# File 'lib/rakyll/compiler/copy.rb', line 11

def save
  FileUtils.copy(@source_filename, @filename)
end