Class: Item
- Inherits:
-
Object
- Object
- Item
- Defined in:
- lib/subsystem.rb
Overview
The Item class is the Hitsuji representation of a variable, and its properties include a name and a value. The value has read-write properties, but once the Item is bound, a seperate method must be used to read and change it. Examples of its use can be seen in the documentation for the Hitsuji.item method.
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value) ⇒ Item
constructor
A new instance of Item.
Constructor Details
#initialize(name, value) ⇒ Item
Returns a new instance of Item.
8 9 10 11 |
# File 'lib/subsystem.rb', line 8 def initialize(name, value) @name = name @value = value end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
13 14 15 |
# File 'lib/subsystem.rb', line 13 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
13 14 15 |
# File 'lib/subsystem.rb', line 13 def value @value end |