Class: Regexp
Instance Method Summary collapse
-
#as(binding_pattern) ⇒ Object
Causes a string matching the regular expression to be bound the the given name.
Instance Method Details
#as(binding_pattern) ⇒ Object
Causes a string matching the regular expression to be bound the the given name.
656 657 658 |
# File 'lib/filigree/match.rb', line 656 def as(binding_pattern) binding_pattern.tap { |bp| bp.pattern_elem = Filigree::RegexpPattern.new(self) } end |