rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / Atom feed
* Use a different name instead of 'call' ?
@ 2010-02-19 22:22 Guoliang Cao
  2010-02-20  5:01 ` Daniel N
  0 siblings, 1 reply; 3+ messages in thread
From: Guoliang Cao @ 2010-02-19 22:22 UTC (permalink / raw)
  To: Rack Development

Hi,

I'm relatively new here. Please forgive me if this has been asked
before.

I'm wondering if it is possible to name 'call' differently in my
middleware. Because 'call' is a relatively popular name and in case it
is already used in one of the modules I included, I have to create a
wrapper for my middleware. It'll be perfect if I can do something like
this:

class MyMiddleware
  def rack_call_method
     :my_rack_call
  end

  def my_rack_call env
     # my middleware implementation goes here
  end
end

Thank you.

Cao

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-02-21 16:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-19 22:22 Use a different name instead of 'call' ? Guoliang Cao
2010-02-20  5:01 ` Daniel N
2010-02-21 15:50   ` Guoliang Cao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).