Class: Reg::LookAhead
- Inherits:
-
Object
- Object
- Reg::LookAhead
- Defined in:
- lib/redparse/reg_more_sugar.rb
Instance Method Summary collapse
-
#initialize(reg) ⇒ LookAhead
constructor
A new instance of LookAhead.
- #itemrange ⇒ Object
- #regs(i) ⇒ Object
- #subregs ⇒ Object
Constructor Details
#initialize(reg) ⇒ LookAhead
Returns a new instance of LookAhead.
84 85 86 |
# File 'lib/redparse/reg_more_sugar.rb', line 84 def initialize(reg) @reg=reg end |
Instance Method Details
#itemrange ⇒ Object
96 97 98 |
# File 'lib/redparse/reg_more_sugar.rb', line 96 def itemrange 0..0 end |
#regs(i) ⇒ Object
88 89 90 |
# File 'lib/redparse/reg_more_sugar.rb', line 88 def regs(i) @reg end |
#subregs ⇒ Object
92 93 94 |
# File 'lib/redparse/reg_more_sugar.rb', line 92 def subregs [@reg] end |