class Apitizer::Routing::Proxy

Public Class Methods

new(owner, options = {}) click to toggle source
# File lib/apitizer/routing/proxy.rb, line 4
def initialize(owner, options = {})
  @owner = owner
  @options = options
end

Public Instance Methods

method_missing(name, *arguments, &block) click to toggle source
Calls superclass method
# File lib/apitizer/routing/proxy.rb, line 9
def method_missing(name, *arguments, &block)
  name = :"define_#{ name }"
  return super unless @owner.respond_to?(name)
  options = Helper.extract_hash!(arguments)
  @owner.send(name, *arguments, options.merge(@options), &block)
end