Class: Ikra::Translator::Variable
- Defined in:
- lib/translator/translator.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name:, type:) ⇒ Variable
constructor
A new instance of Variable.
Constructor Details
#initialize(name:, type:) ⇒ Variable
Returns a new instance of Variable.
41 42 43 44 |
# File 'lib/translator/translator.rb', line 41 def initialize(name:, type:) @name = name @type = type end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
39 40 41 |
# File 'lib/translator/translator.rb', line 39 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
38 39 40 |
# File 'lib/translator/translator.rb', line 38 def type @type end |