Module: DbAgent::Viewpoint::Delegate

Defined in:
lib/db_agent/viewpoint/delegate.rb

Overview

Delegates all relation accesses to ‘child`.

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &bl) ⇒ Object



6
7
8
9
# File 'lib/db_agent/viewpoint/delegate.rb', line 6

def method_missing(name, *args, &bl)
  return super unless args.empty? and bl.nil?
  child.send(name)
end