Module: PatternMatch::KeyMatcher
- Included in:
- Hash
- Defined in:
- lib/pattern-match/experimental.rb
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
82 83 84 85 86 87 88 |
# File 'lib/pattern-match/experimental.rb', line 82 def self.included(klass) class << klass def pattern_matcher(*subpatterns) PatternKeywordArgStyleDeconstructor.new(self, :has_key?, :[], *subpatterns) end end end |