Class: Stackdo::Variable

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, value) ⇒ Variable

Returns a new instance of Variable.



26
27
28
29
# File 'lib/stackdo.rb', line 26

def initialize(name, value)
  @name = name
  @value = value
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



24
25
26
# File 'lib/stackdo.rb', line 24

def name
  @name
end

#valueObject (readonly)

Returns the value of attribute value.



24
25
26
# File 'lib/stackdo.rb', line 24

def value
  @value
end