Class: Arel::Attributes::Ltree

Inherits:
Struct
  • Object
show all
Includes:
Ltree::Predications
Defined in:
lib/arel-ltree/attributes.rb

Direct Known Subclasses

Lquery

Instance Attribute Summary collapse

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

#queryObject

Returns the value of attribute query

Returns:

  • (Object)

    the current value of query



3
4
5
# File 'lib/arel-ltree/attributes.rb', line 3

def query
  @query
end

Instance Method Details

#to_sObject



14
15
16
# File 'lib/arel-ltree/attributes.rb', line 14

def to_s
  query
end