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

Represents an expression of the form:

  recv ||= value

Ruby will evaluate the expression on the left hand side. If it is undefined, nil, or false, then ruby will evaluate the expression on the right hand side and assign it to recv. The expression will short-circuit if recv is defined and true (non-false, non-nil).

Methods

aid   members   recv   value  

Public Class methods

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

Public Instance methods

The method to call on the receiver to set the attribute

an expression representing the left hand side of the assignment

the value to assign to the local variable

[Validate]