Class: CapicuaGen::Template
- Inherits:
-
Object
- Object
- CapicuaGen::Template
- Defined in:
- lib/CapicuaGen/template.rb
Overview
Define una plantilla para generar codigo
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(atributes = {}) ⇒ Template
constructor
A new instance of Template.
Constructor Details
#initialize(atributes = {}) ⇒ Template
Returns a new instance of Template.
32 33 34 35 |
# File 'lib/CapicuaGen/template.rb', line 32 def initialize(atributes= {}) @name= atributes[:name] if atributes[:name] @file= atributes[:file] if atributes[:file] end |
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
30 31 32 |
# File 'lib/CapicuaGen/template.rb', line 30 def file @file end |
#name ⇒ Object
Returns the value of attribute name.
30 31 32 |
# File 'lib/CapicuaGen/template.rb', line 30 def name @name end |