Class: Module::NegativeType
- Inherits:
-
CompositeType
- Object
- Module
- CompositeType
- Module::NegativeType
- 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
76 77 78 |
# File 'lib/typed_attr/composite_type.rb', line 76 def === x ! (@a === x) end |
#to_s ⇒ Object
79 80 81 |
# File 'lib/typed_attr/composite_type.rb', line 79 def to_s @to_s ||= "(~#{@a})".freeze end |