class Logicality::Parser::Ast::UnaryOperatorNode

A unary operator node has just one child node.

Attributes

child[R]

Public Class Methods

new(child, token) click to toggle source
Calls superclass method Logicality::Parser::Ast::Node::new
# File lib/logicality/parser/ast/unary_operator_node.rb, line 17
def initialize(child, token)
  super(token)

  @name   = 'unary_operator_node'
  @child  = child
end