Class: Org::State
- Inherits:
-
Struct
- Object
- Struct
- Org::State
- Defined in:
- lib/org/state.rb
Instance Attribute Summary collapse
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#scanner ⇒ Object
Returns the value of attribute scanner.
-
#scope ⇒ Object
Returns the value of attribute scope.
Instance Method Summary collapse
Instance Attribute Details
#parent ⇒ Object
Returns the value of attribute parent
2 3 4 |
# File 'lib/org/state.rb', line 2 def parent @parent end |
#scanner ⇒ Object
Returns the value of attribute scanner
2 3 4 |
# File 'lib/org/state.rb', line 2 def scanner @scanner end |
#scope ⇒ Object
Returns the value of attribute scope
2 3 4 |
# File 'lib/org/state.rb', line 2 def scope @scope end |
Instance Method Details
#step ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/org/state.rb', line 3 def step loop do # before = scanner.string[0...scanner.pos][-25, 25] # after = scanner.string[scanner.pos..-1][0, 50] # p "%40s@%40s" % [before, after] break unless scope.step(self) end end |