Module: PatternMatch::AttributeMatcher

Defined in:
lib/pattern-match/experimental.rb

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/pattern-match/experimental.rb', line 16

def self.included(klass)
  class << klass
    def pattern_matcher(*subpatterns)
      PatternKeywordArgStyleDeconstructor.new(self, :respond_to?, :__send__, *subpatterns)
    end
  end
end