module PatternMatch::KeyMatcher

Public Class Methods

included(klass) click to toggle source
# File lib/pattern-match/experimental.rb, line 76
def self.included(klass)
  class << klass
    def pattern_matcher(*subpatterns)
      PatternKeywordArgStyleDeconstructor.new(self, :has_key?, :[], *subpatterns)
    end
  end
end