Skip to content

Instantly share code, notes, and snippets.

@dsturnbull
Created November 18, 2009 11:23
Show Gist options
  • Select an option

  • Save dsturnbull/237754 to your computer and use it in GitHub Desktop.

Select an option

Save dsturnbull/237754 to your computer and use it in GitHub Desktop.
def (Rackjour::Proxy).const_missing(name)
proxy_class = Class.new do
def initialize(app)
p self.class
@app = app
end
end
(Rackjour::Proxy).const_set(name, proxy_class)
(Rackjour::Proxy).const_get(name)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment