class TypeProf::Core::Type::Hash
Public Class Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/type.rb, line 156 def initialize(genv, literal_pairs, base_type) @literal_pairs = literal_pairs @base_type = base_type raise unless base_type.is_a?(Instance) end
: (GlobalEnv, ::Array[Vertex], Instance) -> void
Public Instance Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/type.rb, line 170 def base_type(genv) @base_type end
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/type.rb, line 162 def get_key @base_type.args[0] end
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/type.rb, line 166 def get_value(key = nil) @literal_pairs[key] || @base_type.args[1] end
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/type.rb, line 174 def show @base_type.show end