class TypeProf::Core::AST::StatementsNode::MultiWriteNode::MatchWriteNode::DefinedNode::SplatNode::ForNode::FlipFlopNode::MatchRequiredNode::MatchPreidcateNode - typeprof: Ruby Standard Library Documentation

# class TypeProf::Core::AST::StatementsNode::MultiWriteNode::MatchWriteNode::DefinedNode::SplatNode::ForNode::FlipFlopNode::MatchRequiredNode::MatchPreidcateNode

### Attributes

pat[R]
value[R]

### Public Class Methods

new(raw_node, lenv) click to toggle source
Calls superclass method `TypeProf::Core::AST::Node::new`

    # File typeprof-0.30.1/lib/typeprof/core/ast/misc.rb, line 246
    def initialize(raw_node, lenv)
      super(raw_node, lenv)
      @value = AST.create_node(raw_node.value, lenv)
      @pat = AST.create_pattern_node(raw_node.pattern, lenv)
    end

### Public Instance Methods

install0(genv) click to toggle source

    # File typeprof-0.30.1/lib/typeprof/core/ast/misc.rb, line 256
    def install0(genv)
      @value.install(genv)
      @pat.install(genv)
      Source.new(genv.true_type, genv.false_type)
    end

subnodes(= { value:, pat: }) click to toggle source

    # File typeprof-0.30.1/lib/typeprof/core/ast/misc.rb, line 254
      def subnodes = { value:, pat: }

      def install0(genv)
        @value.install(genv)
        @pat.install(genv)
        Source.new(genv.true_type, genv.false_type)
      end
    end