class TypeProf::Core::ScopedStaticRead - typeprof: Ruby Standard Library Documentation

# class TypeProf::Core::ScopedStaticRead

### Public Class Methods

new(name, cbase) click to toggle source
Calls superclass method `TypeProf::Core::StaticRead::new`

    # File typeprof-0.30.1/lib/typeprof/core/env/static_read.rb, line 74
    def initialize(name, cbase)
      super(name)
      @cbase = cbase
      @cbase.followers << self if @cbase
    end

### Public Instance Methods

on_cbase_updated(genv) click to toggle source

    # File typeprof-0.30.1/lib/typeprof/core/env/static_read.rb, line 80
    def on_cbase_updated(genv)
      if @cbase && @cbase.cpath
        resolve(genv, CRef.new(@cbase.cpath, :class, nil, nil), true)
      else
        resolution_failed(genv)
      end
    end