class TypeProf::Core::AST::LiteralNode::NilNode::TrueNode::FalseNode::IntegerNode::FloatNode::RationalNode::ComplexNode::SymbolNode::InterpolatedSymbolNode::StringNode::InterpolatedStringNode::RegexpNode::InterpolatedRegexpNode::MatchLastLineNode::InterpolatedMatchLastLineNode
Attributes
Public Class Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/value.rb, line 196 def initialize(raw_node, lenv) super(raw_node, lenv) @parts = raw_node.parts.map do |raw_part| AST.create_part_node(raw_part, lenv) end end
Calls superclass method
TypeProf::Core::AST::Node::new
Public Instance Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/value.rb, line 207 def install0(genv) @parts.each do |subnode| subnode.install(genv) end Source.new(genv.true_type, genv.false_type) end
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/ast/value.rb, line 205 def subnodes = { parts: } def install0(genv) @parts.each do |subnode| subnode.install(genv) end Source.new(genv.true_type, genv.false_type) end end