class TypeProf::Core::AST::ModuleBaseNode::ClassNode
Attributes
Public Class Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/module.rb, line 89 def initialize(raw_node, lenv, use_result) super(raw_node, lenv, raw_node.constant_path, false, raw_node.body, use_result) raw_superclass = raw_node.superclass @superclass_cpath = raw_superclass ? AST.create_node(raw_superclass, lenv) : nil end
Calls superclass method
TypeProf::Core::AST::ModuleBaseNode::new
Public Instance Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/module.rb, line 101 def define0(genv) if @static_cpath && @superclass_cpath const = @superclass_cpath.define(genv) const.followers << genv.resolve_cpath(@static_cpath) if const end super(genv) end
Calls superclass method
TypeProf::Core::AST::ModuleBaseNode#define0
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/module.rb, line 114 def install0(genv) @superclass_cpath.install(genv) if @superclass_cpath super(genv) end
Calls superclass method
TypeProf::Core::AST::ModuleBaseNode#install0
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/module.rb, line 97 def subnodes super.merge!({ superclass_cpath: }) end
Calls superclass method
TypeProf::Core::AST::ModuleBaseNode#subnodes
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/module.rb, line 109 def undefine0(genv) super(genv) @superclass_cpath.undefine(genv) if @superclass_cpath end
Calls superclass method
TypeProf::Core::AST::ModuleBaseNode#undefine0