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.



21
22
23
24
# File 'lib/subsystem.rb', line 21

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#valueObject

Returns the value of attribute value.



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

def value
  @value
end