class TypeProf::Core::EscapeBox::SplatBox - typeprof: Ruby Standard Library Documentation

# class TypeProf::Core::EscapeBox::SplatBox

### Attributes

ary[R]
ret[R]

### Public Class Methods

new(node, genv, ary) click to toggle source
Calls superclass method `TypeProf::Core::Box::new`

    # File typeprof-0.30.1/lib/typeprof/core/graph/box.rb, line 288
    def initialize(node, genv, ary)
      super(node)
      @ary = ary
      @ary.add_edge(genv, self)
      @ret = Vertex.new(node)
    end

### Public Instance Methods

run0(genv, changes) click to toggle source

    # File typeprof-0.30.1/lib/typeprof/core/graph/box.rb, line 297
    def run0(genv, changes)
      @ary.each_type do |ty|
        ty = ty.base_type(genv)
        if ty.mod == genv.mod_ary
          changes.add_edge(genv, ty.args[0], @ret)
        else
          "???"
        end
      end
    end