class XQuery::Generic

delegates all operations to model

Public Instance Methods

method_missing(name, *args, &block) click to toggle source

all missing methods would be delegated to query and processed as wrappers process them

Calls superclass method
# File lib/xquery/generic.rb, line 8
def method_missing(name, *args, &block)
  super unless respond_to_missing?(name)
  _update_query(name, *args, &block)
end
respond_to_missing?(name, *) click to toggle source

respond to all public model methods

# File lib/xquery/generic.rb, line 14
def respond_to_missing?(name, *)
  query.respond_to?(name, true)
end

Private Instance Methods

q() click to toggle source

q object refers to self, not proxy

# File lib/xquery/generic.rb, line 21
def q
  self
end