class Axiom::Adapter::Arango::Visitor::Binary

Visitor for binary AQL nodes

Constants

MAPPING

Public Instance Methods

local_name() click to toggle source

Return local name

@return [Node::Name]

@api private

# File lib/axiom/adapter/arango/visitor/binary.rb, line 34
def local_name
  context.local_name
end
root() click to toggle source

Return root AQL node

@return [AQL::Node]

@api private

# File lib/axiom/adapter/arango/visitor/binary.rb, line 45
def root
  klass = MAPPING.fetch(input.class)
  klass.new(left, right)
end

Private Instance Methods

left() click to toggle source

Return left AQL node

@return [AQL::Node]

@api private

# File lib/axiom/adapter/arango/visitor/binary.rb, line 59
def left
  visit(input.left)
end
right() click to toggle source

Return right AQL node

@return [AQL::Node]

@api private

# File lib/axiom/adapter/arango/visitor/binary.rb, line 69
def right
  visit(input.right)
end