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

# class TypeProf::Core::ValueEntity

### Attributes

decls[R]
defs[R]
read_boxes[R]
vtx[R]

### Public Class Methods

new() click to toggle source

    # File typeprof-0.30.1/lib/typeprof/core/env/value_entity.rb, line 3
    def initialize
      @decls = Set[]
      @defs = Set[]
      @read_boxes = Set[]
      @vtx = Vertex.new(self)
    end

### Public Instance Methods

add_decl(decl) click to toggle source

    # File typeprof-0.30.1/lib/typeprof/core/env/value_entity.rb, line 12
    def add_decl(decl)
      @decls << decl
    end

add_def(def_) click to toggle source

    # File typeprof-0.30.1/lib/typeprof/core/env/value_entity.rb, line 20
    def add_def(def_)
      @defs << def_
    end

exist?() click to toggle source

    # File typeprof-0.30.1/lib/typeprof/core/env/value_entity.rb, line 28
    def exist?
      !@decls.empty? || !@defs.empty?
    end

remove_decl(decl) click to toggle source

    # File typeprof-0.30.1/lib/typeprof/core/env/value_entity.rb, line 16
    def remove_decl(decl)
      @decls.delete(decl) || raise
    end

remove_def(def_) click to toggle source

    # File typeprof-0.30.1/lib/typeprof/core/env/value_entity.rb, line 24
    def remove_def(def_)
      @defs.delete(def_) || raise
    end