class TypeProf::Core::AST::ArrayPatternNode::HashPatternNode::FindPatternNode::AltPatternNode::CapturePatternNode::IfPatternNode::PinnedPatternNode
Attributes
Public Class Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/pattern.rb, line 134 def initialize(raw_node, lenv) super(raw_node, lenv) @expr = AST.create_node(raw_node.type == :pinned_variable_node ? raw_node.variable : raw_node.expression, lenv) end
Calls superclass method
TypeProf::Core::AST::Node::new
Public Instance Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/pattern.rb, line 143 def install0(genv) @expr.install(genv) end
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/pattern.rb, line 141 def subnodes = { expr: } def install0(genv) @expr.install(genv) end end