class CloudSesame::Query::AST::MultiExpressionOperatorChildren
Attributes
_return[RW]
_scope[RW]
field[R]
Public Class Methods
build(scope, children = nil)
click to toggle source
# File lib/cloud_sesame/query/ast/multi_expression_operator_children.rb, line 10 def self.build(scope, children = nil) array = new(children || []) array._scope = scope array end
Public Instance Methods
_context()
click to toggle source
# File lib/cloud_sesame/query/ast/multi_expression_operator_children.rb, line 25 def _context _scope && _scope.context end
compile()
click to toggle source
# File lib/cloud_sesame/query/ast/multi_expression_operator_children.rb, line 29 def compile map(&:compile).compact.join(' ') end
field=(field)
click to toggle source
# File lib/cloud_sesame/query/ast/multi_expression_operator_children.rb, line 16 def field=(field) parents.clear @field = field end
parents()
click to toggle source
# File lib/cloud_sesame/query/ast/multi_expression_operator_children.rb, line 21 def parents @parents ||= [] end