Class: Anchor::Types::Union
- Inherits:
-
Data
- Object
- Data
- Anchor::Types::Union
- Defined in:
- lib/anchor/types.rb
Instance Attribute Summary collapse
-
#types ⇒ Object
readonly
Returns the value of attribute types.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#types ⇒ Object (readonly)
Returns the value of attribute types
41 42 43 |
# File 'lib/anchor/types.rb', line 41 def types @types end |
Class Method Details
.[](*types) ⇒ Object
43 |
# File 'lib/anchor/types.rb', line 43 def [](*types) = new(types) |
Instance Method Details
#|(other) ⇒ Object
46 47 48 |
# File 'lib/anchor/types.rb', line 46 def |(other) self.class.new(types + [other]) end |