class MongoQL::Expression::Unary
Attributes
operator[RW]
right_node[RW]
Public Class Methods
new(operator, right)
click to toggle source
# File lib/mongo_ql/expression/unary.rb, line 7 def initialize(operator, right) @operator = operator @right_node = to_expression(right) end
Public Instance Methods
to_ast()
click to toggle source
# File lib/mongo_ql/expression/unary.rb, line 12 def to_ast { operator => right_node } end