Method: Class#as
- Defined in:
- lib/filigree/match.rb
#as(binding_pattern) ⇒ Object
Causes an instance of a class to be bound the the given name.
496 497 498 |
# File 'lib/filigree/match.rb', line 496 def as(binding_pattern) binding_pattern.tap { |bp| bp.pattern_elem = self } end |