Class: T::Utils::Nilable::TypeInfo

Inherits:
Struct
  • Object
show all
Defined in:
lib/types/utils.rb

Overview

:is_union_type, T::Boolean: whether the type is an T::Types::Union type :non_nilable_type, Class: if it is an T.nilable type, the corresponding underlying type; otherwise, nil.

Instance Attribute Summary collapse

Instance Attribute Details

#is_union_typeObject

Returns the value of attribute is_union_type

Returns:

  • (Object)

    the current value of is_union_type



171
172
173
# File 'lib/types/utils.rb', line 171

def is_union_type
  @is_union_type
end

#non_nilable_typeObject

Returns the value of attribute non_nilable_type

Returns:

  • (Object)

    the current value of non_nilable_type



171
172
173
# File 'lib/types/utils.rb', line 171

def non_nilable_type
  @non_nilable_type
end