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
84 85 86 |
# File 'lib/anchor/types.rb', line 84 def types @types end |
Class Method Details
.[](*types) ⇒ Object
86 |
# File 'lib/anchor/types.rb', line 86 def [](*types) = new(types) |
Instance Method Details
#|(other) ⇒ Object
89 90 91 |
# File 'lib/anchor/types.rb', line 89 def |(other) self.class.new(types + [other]) end |