Class: Riml::BinaryOperatorNode
- Inherits:
-
OperatorNode
- Object
- Struct
- OperatorNode
- Riml::BinaryOperatorNode
- Includes:
- Constants
- Defined in:
- lib/riml/nodes.rb
Constant Summary
Constants included from Constants
Constants::BUILTIN_COMMANDS, Constants::BUILTIN_FUNCTIONS, Constants::COMPARISON_OPERATORS, Constants::COMPILED_STRING_LOCATION, Constants::DEFINE_KEYWORDS, Constants::END_KEYWORDS, Constants::IGNORECASE_CAPABLE_OPERATORS, Constants::KEYWORDS, Constants::REGISTERS, Constants::RIML_CLASS_COMMANDS, Constants::RIML_COMMANDS, Constants::RIML_END_KEYWORDS, Constants::RIML_FILE_COMMANDS, Constants::RIML_KEYWORDS, Constants::SPECIAL_VARIABLE_PREFIXES, Constants::SPLAT_LITERAL, Constants::UNKNOWN_LOCATION_INFO, Constants::VIML_COMMANDS, Constants::VIML_END_KEYWORDS, Constants::VIML_KEYWORDS
Constants included from Visitable
Instance Attribute Summary
Attributes inherited from OperatorNode
Attributes included from Visitable
#compiled_output, #force_newline, #parent_node, #parser_info, #scope
Instance Method Summary collapse
- #ignorecase_capable_operator?(operator) ⇒ Boolean
- #operand1 ⇒ Object
- #operand1=(val) ⇒ Object
- #operand2 ⇒ Object
- #operand2=(val) ⇒ Object
Methods inherited from OperatorNode
#children, #force_newline_if_child_call_node?
Methods included from Visitable
#accept, #children, #force_newline_if_child_call_node?, #location_info
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
Instance Method Details
#ignorecase_capable_operator?(operator) ⇒ Boolean
451 452 453 |
# File 'lib/riml/nodes.rb', line 451 def ignorecase_capable_operator?(operator) IGNORECASE_CAPABLE_OPERATORS.include?(operator) end |
#operand1 ⇒ Object
445 |
# File 'lib/riml/nodes.rb', line 445 def operand1() operands[0] end |
#operand1=(val) ⇒ Object
446 |
# File 'lib/riml/nodes.rb', line 446 def operand1=(val) operands[0] = val end |
#operand2 ⇒ Object
448 |
# File 'lib/riml/nodes.rb', line 448 def operand2() operands[1] end |
#operand2=(val) ⇒ Object
449 |
# File 'lib/riml/nodes.rb', line 449 def operand2=(val) operands[1] = val end |