class TypeProf::Core::EscapeBox::HashSplatBox::MethodAliasBox
Attributes
Public Class Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/graph/box.rb, line 673 def initialize(node, genv, cpath, singleton, new_mid, old_mid) super(node) @cpath = cpath @singleton = singleton @new_mid = new_mid @old_mid = old_mid @ret = Source.new(genv.nil_type) me = genv.resolve_method(@cpath, @singleton, @new_mid) me.add_alias(self, @old_mid) me.add_run_all_method_call_boxes(genv) if me.decls.empty? genv.add_run(self) end
Calls superclass method
TypeProf::Core::Box::new
Public Instance Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/graph/box.rb, line 691 def destroy(genv) me = genv.resolve_method(@cpath, @singleton, @new_mid) me.remove_alias(self) me.add_run_all_method_call_boxes(genv) if me.decls.empty? genv.add_run(self) super(genv) end
Calls superclass method
TypeProf::Core::Box#destroy
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/graph/box.rb, line 699 def run0(genv, changes) # TODO: what to do? end