Class: Fisk::Machine::Instruction
- Inherits:
-
Object
- Object
- Fisk::Machine::Instruction
- Defined in:
- lib/fisk/machine.rb
Instance Attribute Summary collapse
-
#forms ⇒ Object
readonly
Returns the value of attribute forms.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, forms) ⇒ Instruction
constructor
A new instance of Instruction.
Constructor Details
#initialize(name, forms) ⇒ Instruction
Returns a new instance of Instruction.
27 28 29 30 |
# File 'lib/fisk/machine.rb', line 27 def initialize name, forms @name = name @forms = forms end |
Instance Attribute Details
#forms ⇒ Object (readonly)
Returns the value of attribute forms.
25 26 27 |
# File 'lib/fisk/machine.rb', line 25 def forms @forms end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
25 26 27 |
# File 'lib/fisk/machine.rb', line 25 def name @name end |