Module: PatternMatch::Deconstructable
- Defined in:
- lib/pattern-match/experimental.rb,
lib/pattern-match/deconstructor.rb
Instance Method Summary collapse
Instance Method Details
#call(*subpatterns) ⇒ Object
56 57 58 59 60 61 62 |
# File 'lib/pattern-match/experimental.rb', line 56 def call(*subpatterns) if Object == self PatternKeywordArgStyleDeconstructor.new(Object, :respond_to?, :__send__, *subpatterns) else pattern_matcher(*subpatterns) end end |