Class: CapicuaGen::Template

Inherits:
Object
  • Object
show all
Defined in:
lib/CapicuaGen/template.rb

Overview

Define una plantilla para generar codigo

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fileObject

Returns the value of attribute file.



30
31
32
# File 'lib/CapicuaGen/template.rb', line 30

def file
  @file
end

#nameObject

Returns the value of attribute name.



30
31
32
# File 'lib/CapicuaGen/template.rb', line 30

def name
  @name
end