Class: Ikra::Translator::Variable

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



39
40
41
# File 'lib/translator/translator.rb', line 39

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



38
39
40
# File 'lib/translator/translator.rb', line 38

def type
  @type
end