Class: AbstractSyntaxTreeKit::Node::OP_ASGN_OR
- Inherits:
-
AbstractSyntaxTreeKit::Node
- Object
- AbstractSyntaxTreeKit::Node
- AbstractSyntaxTreeKit::Node::OP_ASGN_OR
- Defined in:
- lib/astkit/node/op_asgn_or.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
-
#variable ⇒ Object
readonly
Returns the value of attribute variable.
Attributes inherited from AbstractSyntaxTreeKit::Node
#body, #children, #condition, #els, #first_column, #first_lineno, #last_column, #last_lineno, #type
Instance Method Summary collapse
-
#initialize(node:, variable:, value:) ⇒ OP_ASGN_OR
constructor
A new instance of OP_ASGN_OR.
Constructor Details
#initialize(node:, variable:, value:) ⇒ OP_ASGN_OR
Returns a new instance of OP_ASGN_OR.
6 7 8 9 10 |
# File 'lib/astkit/node/op_asgn_or.rb', line 6 def initialize(node:, variable:, value:) super(node) @variable = variable @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
4 5 6 |
# File 'lib/astkit/node/op_asgn_or.rb', line 4 def value @value end |
#variable ⇒ Object (readonly)
Returns the value of attribute variable.
4 5 6 |
# File 'lib/astkit/node/op_asgn_or.rb', line 4 def variable @variable end |