rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / Atom feed
From: Guoliang Cao <gcao99@gmail.com>
To: Rack Development <rack-devel@googlegroups.com>
Subject: Use a different name instead of 'call' ?
Date: Fri, 19 Feb 2010 14:22:43 -0800 (PST)	[thread overview]
Message-ID: <c7c67973-6214-4f54-bb8e-095056361db9@k11g2000vbe.googlegroups.com> (raw)

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

             reply	other threads:[~2010-02-19 22:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-19 22:22 Guoliang Cao [this message]
2010-02-20  5:01 ` Use a different name instead of 'call' ? Daniel N
2010-02-21 15:50   ` Guoliang Cao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://groups.google.com/group/rack-devel

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c7c67973-6214-4f54-bb8e-095056361db9@k11g2000vbe.googlegroups.com \
    --to=rack-devel@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).