Module: PatternMatch::AttributeMatcher
- Defined in:
- lib/pattern-match/experimental.rb
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
72 73 74 75 76 77 78 |
# File 'lib/pattern-match/experimental.rb', line 72 def self.included(klass) class << klass def pattern_matcher(*subpatterns) PatternKeywordArgStyleDeconstructor.new(self, :respond_to?, :__send__, *subpatterns) end end end |