Class Node::OP_ASGN2
In: ext/nodeinfo.c
Parent: Node

Represents attribute assignment of the form:

  recv.attr op value

where recv is the receiver of the attr method, attr is the attribute to which to assign, op is an assignment operation (e.g. +=), and value is the value to assign to the attribute.

The ‘next’ member of this class is also of type OP_ASGN2, though it has different members than its parent. This child node is documented under OP_ASGN2_ARG.

Methods

members   next   recv   value  

Public Class methods

Return an array of strings containing the names of the node class‘s members.

Public Instance methods

the second expression in the block of code

an expression representing the left hand side of the assignment

the value to assign to the local variable

[Validate]