Class: Riml::BinaryOperatorNode
- Inherits:
-
OperatorNode
- Object
- Struct
- OperatorNode
- Riml::BinaryOperatorNode
- Includes:
- Constants
- Defined in:
- lib/nodes.rb
Constant Summary
Constants included from Constants
Constants::BUILTIN_COMMANDS, Constants::BUILTIN_FUNCTIONS, Constants::COMPARISON_OPERATORS, Constants::DEFINE_KEYWORDS, Constants::END_KEYWORDS, Constants::IGNORECASE_CAPABLE_OPERATORS, Constants::KEYWORDS, Constants::REGISTERS, Constants::RIML_COMMANDS, Constants::RIML_END_KEYWORDS, Constants::RIML_KEYWORDS, Constants::SPECIAL_VARIABLE_PREFIXES, Constants::SPLAT_LITERAL, Constants::VIML_COMMANDS, Constants::VIML_END_KEYWORDS, Constants::VIML_KEYWORDS
Constants included from Visitable
Visitable::DESCENDANT_OF_REGEX
Instance Attribute Summary
Attributes inherited from OperatorNode
Attributes included from Visitable
#compiled_output, #force_newline, #parent_node, #scope
Instance Method Summary collapse
- #ignorecase_capable_operator?(operator) ⇒ Boolean
- #operand1 ⇒ Object
- #operand1=(val) ⇒ Object
- #operand2 ⇒ Object
- #operand2=(val) ⇒ Object
Methods inherited from OperatorNode
Methods included from Walkable
#child_after, #child_previous_to, #each, #index_by_children, #index_by_member, #insert_after, #insert_before, #next, #previous, #remove, #replace_with
Methods included from Visitable
#accept, #method_missing, #respond_to?
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Riml::Visitable
Instance Method Details
#ignorecase_capable_operator?(operator) ⇒ Boolean
448 449 450 |
# File 'lib/nodes.rb', line 448 def ignorecase_capable_operator?(operator) IGNORECASE_CAPABLE_OPERATORS.include?(operator) end |
#operand1 ⇒ Object
442 |
# File 'lib/nodes.rb', line 442 def operand1() operands[0] end |
#operand1=(val) ⇒ Object
443 |
# File 'lib/nodes.rb', line 443 def operand1=(val) operands[0] = val end |
#operand2 ⇒ Object
445 |
# File 'lib/nodes.rb', line 445 def operand2() operands[1] end |
#operand2=(val) ⇒ Object
446 |
# File 'lib/nodes.rb', line 446 def operand2=(val) operands[1] = val end |