class Rasti::DB::NQL::Nodes::BinaryNode
Public Instance Methods
computed_attributes(collection_class)
click to toggle source
# 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_tables()
click to toggle source
# File lib/rasti/db/nql/nodes/binary_node.rb, line 7 def dependency_tables values.flat_map(&:dependency_tables) end
values()
click to toggle source
# File lib/rasti/db/nql/nodes/binary_node.rb, line 15 def values @values ||= values_for(left) + values_for(right) end
Private Instance Methods
values_for(node)
click to toggle source
# File lib/rasti/db/nql/nodes/binary_node.rb, line 21 def values_for(node) node.class == self.class ? node.values : [node] end