Sha256: 189507e7ff0b793feab862c39339ea314e79df304f85ba072675364bdd646099
Contents?: true
Size: 405 Bytes
Versions: 1
Compression:
Stored size: 405 Bytes
Contents
module PatternMatching module Methods ## # Wraps a matchable 'pattern' in an object that inverts `===` (case-equality method). def Match(*pattern) ::PatternMatching::CaseEqualityReversal.new(*pattern) end ## # Wraps an argument list as a pattern for use in a call to #Match def Pattern(*pattern) ::PatternMatching::PatternMatch.new(*pattern) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pattern_matching-0.1.0 | lib/pattern_matching/methods.rb |