Class: Arel::Attributes::Ltree
- Inherits:
-
Struct
- Object
- Struct
- Arel::Attributes::Ltree
- Includes:
- Ltree::Predications
- Defined in:
- lib/arel-ltree/attributes.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#query ⇒ Object
Returns the value of attribute query.
Instance Method Summary collapse
Methods included from Ltree::Predications
#ancestor_of, #descendant_of, #matches
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/arel-ltree/attributes.rb', line 6 def method_missing(name, *args) if query.respond_to?(name) query.send(name, *args) else super end end |
Instance Attribute Details
#query ⇒ Object
Returns the value of attribute query
3 4 5 |
# File 'lib/arel-ltree/attributes.rb', line 3 def query @query end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/arel-ltree/attributes.rb', line 14 def to_s query end |