module RuboCop::AST::BinaryOperatorNode
Common functionality for nodes that are binary operations: `or`, `and` …
Public Instance Methods
lhs()
click to toggle source
Returns the left hand side node of the binary operation.
@return [Node] the left hand side of the binary operation
# File lib/rubocop/ast/node/mixin/binary_operator_node.rb, line 11 def lhs node_parts[0] end
rhs()
click to toggle source
Returns the right hand side node of the binary operation.
@return [Node] the right hand side of the binary operation
# File lib/rubocop/ast/node/mixin/binary_operator_node.rb, line 18 def rhs node_parts[1] end