[lists@debonair.net: respond_to? in mod_ruby]

Hi,

···

At Wed, 12 Feb 2003 21:45:35 -0500, Daniel Bretoi modruby@7thfire.com wrote:

<%
def blah
end
p respond_to? “blah”
%>

==> false

anyone know why? And how to get around?

Because blah is a private method.

$ ruby -e ‘def blar; end; p respond_to? “blah”’
false

Shugo

I can swear I tried that successfully in a normal script.
Anywho, thank you Shugo.

db

···

On Thu, Feb 13, 2003 at 11:47:23AM +0900, Shugo Maeda wrote:

Hi,

At Wed, 12 Feb 2003 21:45:35 -0500, > Daniel Bretoi modruby@7thfire.com wrote:

<%
def blah
end
p respond_to? “blah”
%>

==> false

anyone know why? And how to get around?

Because blah is a private method.

$ ruby -e ‘def blar; end; p respond_to? “blah”’
false

Shugo


Feb 13* Be happy, It’s Adar !
Feb 13* Rosh Chodesh Adar (Beginning of the month of Adar)