Class: Dhall::Util::AllOf

Inherits:
Object
  • Object
show all
Defined in:
lib/dhall/util.rb

Instance Method Summary collapse

Constructor Details

#initialize(*validators) ⇒ AllOf

Returns a new instance of AllOf.



8
9
10
# File 'lib/dhall/util.rb', line 8

def initialize(*validators)
	@validators = validators
end

Instance Method Details

#===(other) ⇒ Object



12
13
14
# File 'lib/dhall/util.rb', line 12

def ===(other)
	@validators.all? { |v| v === other }
end