Class: Gena::GenaStaticHeader
- Inherits:
-
Liquid::BlankFileSystem
- Object
- Liquid::BlankFileSystem
- Gena::GenaStaticHeader
- Defined in:
- lib/codegen/codegen.rb
Instance Method Summary collapse
-
#initialize(text) ⇒ GenaStaticHeader
constructor
A new instance of GenaStaticHeader.
- #read_template_file(name) ⇒ Object
Constructor Details
#initialize(text) ⇒ GenaStaticHeader
Returns a new instance of GenaStaticHeader.
172 173 174 |
# File 'lib/codegen/codegen.rb', line 172 def initialize(text) @text = text end |
Instance Method Details
#read_template_file(name) ⇒ Object
176 177 178 179 180 181 182 183 184 185 186 187 |
# File 'lib/codegen/codegen.rb', line 176 def read_template_file(name) if name == 'header' @text || '//////////////////////////////////////////////////////////////////////////////// // // Generated by Gena. // ////////////////////////////////////////////////////////////////////////////////' else '' end end |