Class: NRSER::Types::Intersection
- Inherits:
-
Combinator
- Object
- Type
- Combinator
- NRSER::Types::Intersection
- Defined in:
- lib/nrser/types/combinators.rb
Instance Attribute Summary
Attributes inherited from Combinator
Instance Method Summary collapse
Methods inherited from Combinator
#==, #from_s, #has_from_s?, #initialize, #name
Methods inherited from Type
#check, #default_name, #from_s, #has_from_s?, #initialize, #name, #respond_to?, short_name, #to_s
Constructor Details
This class inherits a constructor from NRSER::Types::Combinator
Instance Method Details
#test(value) ⇒ Object
72 73 74 |
# File 'lib/nrser/types/combinators.rb', line 72 def test value @types.all? {|type| type.test value} end |