Module: Reg::Reg
- Defined in:
- lib/redparse/reg_more_sugar.rb,
lib/redparse/reg_more_sugar.rb,
lib/redparse/reg_more_sugar.rb,
lib/redparse/reg_more_sugar.rb
Instance Method Summary collapse
Instance Method Details
#>>(rep) ⇒ Object
42 43 44 |
# File 'lib/redparse/reg_more_sugar.rb', line 42 def >>(rep) Transform.new(self,rep) end |
#la ⇒ Object
79 80 81 |
# File 'lib/redparse/reg_more_sugar.rb', line 79 def la LookAhead.new(self) end |
#lb ⇒ Object
52 53 54 |
# File 'lib/redparse/reg_more_sugar.rb', line 52 def lb LookBack.new(self) end |
#watch ⇒ Object
106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/redparse/reg_more_sugar.rb', line 106 def watch result=dup class<<result def ===(other) result=super result and p other return result end end return result end |