Class: Arel::Enhance::QueryMethods::Ancestors

Inherits:
QueryMethod
  • Object
show all
Defined in:
lib/arel/enhance/query_methods.rb

Instance Attribute Summary

Attributes inherited from QueryMethod

#subject

Instance Method Summary collapse

Methods inherited from QueryMethod

#initialize

Constructor Details

This class inherits a constructor from Arel::Enhance::QueryMethods::QueryMethod

Instance Method Details

#matches?(other) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/arel/enhance/query_methods.rb', line 13

def matches?(other)
  other <= subject
end