Class: Usmu::Template::GeneratedFile

Inherits:
StaticFile show all
Defined in:
lib/usmu/template/generated_file.rb

Instance Attribute Summary

Attributes inherited from StaticFile

#mtime, #name, #output_filename

Instance Method Summary collapse

Methods inherited from StaticFile

#==

Methods included from Helpers::Indexer

included

Constructor Details

#initialize(configuration, name, metadata = {}, type = nil, content = nil) ⇒ GeneratedFile

Returns a new instance of GeneratedFile.



6
7
8
# File 'lib/usmu/template/generated_file.rb', line 6

def initialize(configuration, name,  = {}, type = nil, content = nil)
  super(configuration, name, , type, content)
end

Instance Method Details

#input_pathvoid



17
18
19
# File 'lib/usmu/template/generated_file.rb', line 17

def input_path
  nil
end

#inspectvoid



25
26
27
# File 'lib/usmu/template/generated_file.rb', line 25

def inspect
  "\#<#{self.class}:#{'0x%08x' % __id__} #{@name} => #{output_filename}>"
end

#metadatavoid



21
22
23
# File 'lib/usmu/template/generated_file.rb', line 21

def 
  @metadata
end

#rendervoid



10
11
12
13
14
15
# File 'lib/usmu/template/generated_file.rb', line 10

def render
  unless @content
    raise 'Render not implemented'
  end
  @content
end