Class: Ynl::Types::IndexedArray

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#sub_typeObject

Returns the value of attribute sub_type

Returns:

  • (Object)

    the current value of sub_type



92
93
94
# File 'lib/ynl.rb', line 92

def sub_type
  @sub_type
end

Instance Method Details

#rbs_typeObject



98
99
100
# File 'lib/ynl.rb', line 98

def rbs_type
  'untyped'
end

#resolve(f) ⇒ Object



93
94
95
96
# File 'lib/ynl.rb', line 93

def resolve(f)
  self.sub_type = sub_type.resolve(f)
  self
end