Class: MetaCL::Templates::InitNumeric
- Inherits:
-
Mustache
- Object
- Mustache
- MetaCL::Templates::InitNumeric
- Defined in:
- lib/metacl/templates/init_numeric.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/metacl/templates/init_numeric.rb', line 4 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/metacl/templates/init_numeric.rb', line 4 def type @type end |
#value ⇒ Object
Returns the value of attribute value.
4 5 6 |
# File 'lib/metacl/templates/init_numeric.rb', line 4 def value @value end |
Instance Method Details
#render(name, type, value, platform) ⇒ Object
6 7 8 9 |
# File 'lib/metacl/templates/init_numeric.rb', line 6 def render(name, type, value, platform) @name, @type, @value = name, type, value super IO.read("#{__dir__}/init_numeric.#{platform}.template") end |