Class: Usmu::Template::GeneratedFile
Instance Attribute Summary
Attributes inherited from StaticFile
#mtime, #name, #output_filename
Instance Method Summary
collapse
Methods inherited from StaticFile
#==
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, metadata = {}, type = nil, content = nil)
super(configuration, name, metadata, type, content)
end
|
Instance Method Details
17
18
19
|
# File 'lib/usmu/template/generated_file.rb', line 17
def input_path
nil
end
|
#inspect ⇒ void
25
26
27
|
# File 'lib/usmu/template/generated_file.rb', line 25
def inspect
"\#<#{self.class}:#{'0x%08x' % __id__} #{@name} => #{output_filename}>"
end
|
21
22
23
|
# File 'lib/usmu/template/generated_file.rb', line 21
def metadata
@metadata
end
|
#render ⇒ void
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
|