module Arel::Ltree::Predications
Public Instance Methods
ancestor_of(other)
click to toggle source
# File lib/arel-ltree/ltree/predications.rb, line 4 def ancestor_of(other) Arel::Ltree::Nodes::AncestorOf.new(self, other) end
descendant_of(other)
click to toggle source
# File lib/arel-ltree/ltree/predications.rb, line 8 def descendant_of(other) Arel::Ltree::Nodes::DescendantOf.new(self, other) end
matches(*args)
click to toggle source
Calls superclass method
# File lib/arel-ltree/ltree/predications.rb, line 12 def matches(*args) case args[0] when Attributes::Lquery, Attributes::Ltree Arel::Ltree::Nodes::Matches.new(self, args[0]) when nil Arel::Ltree::Nodes::Matches.new(self) else super end end