class Primalize::Single::Match
Public Class Methods
new(matcher, &coercion)
click to toggle source
# File lib/primalize/single.rb, line 432 def initialize matcher, &coercion @matcher = matcher @coercion = coercion end
Public Instance Methods
===(value)
click to toggle source
# File lib/primalize/single.rb, line 437 def === value @matcher === value end
inspect()
click to toggle source
# File lib/primalize/single.rb, line 441 def inspect "match(#{@matcher.inspect})" end