Class: Fisk::Machine::Instruction

Inherits:
Object
  • Object
show all
Defined in:
lib/fisk/machine.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#formsObject (readonly)

Returns the value of attribute forms.



25
26
27
# File 'lib/fisk/machine.rb', line 25

def forms
  @forms
end

#nameObject (readonly)

Returns the value of attribute name.



25
26
27
# File 'lib/fisk/machine.rb', line 25

def name
  @name
end