Class: BfInterpreter::BfProgramUnit
- Inherits:
-
Object
- Object
- BfInterpreter::BfProgramUnit
- Defined in:
- lib/yarbf.rb
Instance Attribute Summary collapse
-
#instruction ⇒ Object
readonly
Returns the value of attribute instruction.
-
#match ⇒ Object
Returns the value of attribute match.
-
#next ⇒ Object
Returns the value of attribute next.
Instance Method Summary collapse
-
#initialize(instruction) ⇒ BfProgramUnit
constructor
A new instance of BfProgramUnit.
Constructor Details
#initialize(instruction) ⇒ BfProgramUnit
Returns a new instance of BfProgramUnit.
159 160 161 162 163 |
# File 'lib/yarbf.rb', line 159 def initialize(instruction) @instruction = instruction @match = nil @next = nil end |
Instance Attribute Details
#instruction ⇒ Object (readonly)
Returns the value of attribute instruction.
154 155 156 |
# File 'lib/yarbf.rb', line 154 def instruction @instruction end |
#match ⇒ Object
Returns the value of attribute match.
156 157 158 |
# File 'lib/yarbf.rb', line 156 def match @match end |
#next ⇒ Object
Returns the value of attribute next.
157 158 159 |
# File 'lib/yarbf.rb', line 157 def next @next end |