Class: Linker
- Inherits:
-
Object
- Object
- Linker
- Defined in:
- lib/subsystem.rb
Overview
The Linker class is the Hitsuji representation of an array, and its properties include a name and a value. The value is an array with read-write properties, but once the Linker is bound, a seperate method must be used to read and change it. Linkers are the main interface between Items and Operations. Examples of its use can be seen in the documentation for the Hitsuji.linker 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) ⇒ Linker
constructor
A new instance of Linker.
Constructor Details
#initialize(name, value) ⇒ Linker
Returns a new instance of Linker.
23 24 25 26 |
# File 'lib/subsystem.rb', line 23 def initialize(name, value) @name = name @value = value end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
28 29 30 |
# File 'lib/subsystem.rb', line 28 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
28 29 30 |
# File 'lib/subsystem.rb', line 28 def value @value end |