Class: Reg::LookAhead

Inherits:
Object
  • Object
show all
Defined in:
lib/redparse/reg_more_sugar.rb

Instance Method Summary collapse

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

#itemrangeObject



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

#subregsObject



92
93
94
# File 'lib/redparse/reg_more_sugar.rb', line 92

def subregs
  [@reg]
end