Class: Rasti::DB::NQL::Nodes::BinaryNode

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/rasti/db/nql/nodes/binary_node.rb

Direct Known Subclasses

Conjunction, Disjunction

Instance Method Summary collapse

Instance Method Details

#computed_attributes(collection_class) ⇒ Object



11
12
13
# File 'lib/rasti/db/nql/nodes/binary_node.rb', line 11

def computed_attributes(collection_class)
  left.computed_attributes(collection_class) | right.computed_attributes(collection_class)
end

#dependency_tablesObject



7
8
9
# File 'lib/rasti/db/nql/nodes/binary_node.rb', line 7

def dependency_tables
  values.flat_map(&:dependency_tables)
end

#valuesObject



15
16
17
# File 'lib/rasti/db/nql/nodes/binary_node.rb', line 15

def values
  @values ||= values_for(left) + values_for(right)
end