class TypeProf::Core::AST::SigModuleBaseNode::SigDefNode::SigIncludeNode::SigPrependNode::SigAliasNode
Attributes
Public Class Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/sig_decl.rb, line 308 def initialize(raw_decl, lenv) super(raw_decl, lenv) @new_mid = raw_decl.new_name @old_mid = raw_decl.old_name @singleton = raw_decl.singleton? @instance = raw_decl.instance? end
Calls superclass method
TypeProf::Core::AST::Node::new
Public Instance Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/sig_decl.rb, line 317 def attrs = { new_mid:, old_mid:, singleton:, instance: } def install0(genv) [[@singleton, true], [@instance, false]].each do |enabled, singleton| next unless enabled @changes.add_method_alias_box(genv, @lenv.cref.cpath, singleton, @new_mid, @old_mid) end Source.new end end
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/sig_decl.rb, line 319 def install0(genv) [[@singleton, true], [@instance, false]].each do |enabled, singleton| next unless enabled @changes.add_method_alias_box(genv, @lenv.cref.cpath, singleton, @new_mid, @old_mid) end Source.new end