Class: Module::ConjunctiveType
- Inherits:
-
CompositeType
- Object
- Module
- CompositeType
- Module::ConjunctiveType
- Defined in:
- lib/typed_attr/composite_type.rb
Instance Method Summary collapse
Methods inherited from CompositeType
Methods inherited from Module
Constructor Details
This class inherits a constructor from Module::CompositeType
Instance Method Details
#===(x) ⇒ Object
60 61 62 |
# File 'lib/typed_attr/composite_type.rb', line 60 def === x @a === x and @b === x end |
#to_s ⇒ Object
63 64 65 |
# File 'lib/typed_attr/composite_type.rb', line 63 def to_s @to_s ||= "(#{@a}&#{@b})".freeze end |