Dave Rose <bitdoger2 / yahoo.com> wrote:

> what class does a classless independent method belong too?
> another words if i just make an new irb session and type:
> 
> def widget(tidbit)
>  tidbit
> end
> 
> a=1.0
> puts widget(a)
> 
> b='string'
> 
> puts widget(b)
> 
> what class will the widget method belong too?

<http://www.rubycentral.com/faq/rubyfaq-7.html#ss7.4>

m.


-- 
matt neuburg, phd = matt / tidbits.com, http://www.tidbits.com/matt/
Tiger - http://www.takecontrolbooks.com/tiger-customizing.html
AppleScript - http://www.amazon.com/gp/product/0596102119
Read TidBITS! It's free and smart. http://www.tidbits.com