class TypeProf::AllocationSite
Attributes
parent[R]
val[R]
Public Class Methods
new(val, parent = nil)
click to toggle source
# File typeprof-0.21.3/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
Public Instance Methods
add_id(val)
click to toggle source
# File typeprof-0.21.3/lib/typeprof/container-type.rb, line 13 def add_id(val) AllocationSite.new(val, self) end