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



169
170
171
# File 'lib/types/utils.rb', line 169

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



169
170
171
# File 'lib/types/utils.rb', line 169

def non_nilable_type
  @non_nilable_type
end