Class: RKelly::Nodes::NewExprNode

Inherits:
Node
  • Object
show all
Defined in:
lib/rkelly/nodes/new_expr_node.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#comments, #filename, #line, #value

Instance Method Summary collapse

Methods inherited from Node

#==, #===, #each, #pointcut, #to_dots, #to_ecma, #to_real_sexp, #to_sexp

Methods included from Visitable

#accept

Constructor Details

#initialize(value, args) ⇒ NewExprNode

Returns a new instance of NewExprNode.



5
6
7
8
# File 'lib/rkelly/nodes/new_expr_node.rb', line 5

def initialize(value, args)
  super(value)
  @arguments = args
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



4
5
6
# File 'lib/rkelly/nodes/new_expr_node.rb', line 4

def arguments
  @arguments
end