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

Instance Method Details

#===Boolean

Parameters:

Returns:



119
# File 'sig/strict.rbs', line 119

def ===: (untyped value) -> bool

#attributes { ... } ⇒ void

This method returns an undefined value.

Yields:

Yield Returns:

  • (void)


114
# File 'sig/strict.rbs', line 114

def attributes: () { () [self: _AttributesDsl] -> untyped } -> void

#coercer_Coercer[untyped, untyped]

Returns:



118
# File 'sig/strict.rbs', line 118

def coercer: () -> _Coercer[untyped, untyped]

#discriminatorvoid

This method returns an undefined value.

Parameters:



115
# File 'sig/strict.rbs', line 115

def discriminator: (String | Symbol name) -> void

#variant(name, tag:) ⇒ void #variant(name, tag:) ⇒ void

Overloads:

  • #variant(name, tag:) ⇒ void

    This method returns an undefined value.

    Parameters:

  • #variant(name, tag:) ⇒ void

    This method returns an undefined value.

    Parameters:

Yields:

Yield Returns:

  • (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