123456789_123456789_123456789_123456789_123456789_

Class: TypeProf::AllocationSite

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Instance Chain:
Inherits: Object
Defined in: lib/typeprof/container-type.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(val, parent = nil) ⇒ AllocationSite

[ GitHub ]

  
# File 'lib/typeprof/container-type.rb', line 5

def initialize(val, parent = nil)
  raise if !val.is_a?(Utils::StructuralEquality) && !val.is_a?(Integer) && !val.is_a?(Symbol)
  @val = val
  @parent = parent
end

Instance Attribute Details

#parent (readonly)

[ GitHub ]

  
# File 'lib/typeprof/container-type.rb', line 11

attr_reader :val, :parent

#val (readonly)

[ GitHub ]

  
# File 'lib/typeprof/container-type.rb', line 11

attr_reader :val, :parent

Instance Method Details

#add_id(val)

[ GitHub ]

  
# File 'lib/typeprof/container-type.rb', line 13

def add_id(val)
  AllocationSite.new(val, self)
end