Class: Stackdo::Variable
- Inherits:
-
Object
- Object
- Stackdo::Variable
- Defined in:
- lib/stackdo.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value) ⇒ Variable
constructor
A new instance of Variable.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
24 25 26 |
# File 'lib/stackdo.rb', line 24 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
24 25 26 |
# File 'lib/stackdo.rb', line 24 def value @value end |