Class: Linker

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



28
29
30
# File 'lib/subsystem.rb', line 28

def name
  @name
end

#valueObject

Returns the value of attribute value.



28
29
30
# File 'lib/subsystem.rb', line 28

def value
  @value
end