class Primalize::Single::All
Public Class Methods
new(types, &coercion)
click to toggle source
# File lib/primalize/single.rb, line 415 def initialize types, &coercion @types = types @coercion = coercion end
Public Instance Methods
===(value)
click to toggle source
# File lib/primalize/single.rb, line 420 def === value @types.all? { |type| type === value } end
inspect()
click to toggle source
# File lib/primalize/single.rb, line 424 def inspect "all(#{@types.map(&:inspect).join(', ')})" end