Module: Strict::_UnionClass
- Defined in:
- sig/strict.rbs
Overview
Extend this type-only interface in application signatures for classes that include Strict::Union.
Instance Method Summary collapse
- #=== ⇒ Boolean
- #attributes { ... } ⇒ void
- #coercer ⇒ _Coercer[untyped, untyped]
- #discriminator ⇒ void
- #variant { ... } ⇒ Object
Instance Method Details
#=== ⇒ Boolean
119 |
# File 'sig/strict.rbs', line 119
def ===: (untyped value) -> bool
|
#attributes { ... } ⇒ void
This method returns an undefined value.
114 |
# File 'sig/strict.rbs', line 114
def attributes: () { () [self: _AttributesDsl] -> untyped } -> void
|
#coercer ⇒ _Coercer[untyped, untyped]
118 |
# File 'sig/strict.rbs', line 118
def coercer: () -> _Coercer[untyped, untyped]
|
#discriminator ⇒ void
This method returns an undefined value.
115 |
# File 'sig/strict.rbs', line 115
def discriminator: (String | Symbol name) -> void
|
#variant(name, tag:) ⇒ void #variant(name, tag:) ⇒ void
116 117 |
# File 'sig/strict.rbs', line 116
def variant: (String | Symbol name, ?tag: String | Symbol) -> void
| (String | Symbol name, ?tag: String | Symbol) { () [self: _UnionVariantClass] -> untyped } -> void
|