Method: Fear::PatternMatchingApi#match
- Defined in:
- lib/fear/pattern_matching_api.rb
#match(value) {|matcher| ... } ⇒ any
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Pattern match against given value
81 82 83 |
# File 'lib/fear/pattern_matching_api.rb', line 81 def match(value, &block) matcher(&block).(value) end |