module PatternMatching::Methods

Public Instance Methods

Match(*pattern) click to toggle source

Wraps a matchable 'pattern' in an object that inverts `===` (case-equality method).

# File lib/pattern_matching/methods.rb, line 6
def Match(*pattern)
  ::PatternMatching::CaseEqualityReversal.new(*pattern)
end
Pattern(*pattern) click to toggle source

Wraps an argument list as a pattern for use in a call to #Match

# File lib/pattern_matching/methods.rb, line 12
def Pattern(*pattern)
  ::PatternMatching::PatternMatch.new(*pattern)
end