Class: Primalize::Single::Match
- Inherits:
-
Object
- Object
- Primalize::Single::Match
- Includes:
- Type
- Defined in:
- lib/primalize/single.rb
Constant Summary
Constants included from Type
Instance Method Summary collapse
- #===(value) ⇒ Object
-
#initialize(matcher, &coercion) ⇒ Match
constructor
A new instance of Match.
- #inspect ⇒ Object
Methods included from Type
Constructor Details
#initialize(matcher, &coercion) ⇒ Match
Returns a new instance of Match.
450 451 452 453 |
# File 'lib/primalize/single.rb', line 450 def initialize matcher, &coercion @matcher = matcher @coercion = coercion end |