On Fri, Oct 08, 2004 at 03:14:46PM +0900, Martin DeMello wrote:
> "trans.  (T. Onoma)" <transami / runbox.com> wrote:
>  as doing:
> > 
> >   metaclass
> >     def bar
> >       puts "Class Method && Instance Method"
> >     end
> >   instance
> >     def bar
> >       puts "Class Method && Instance Method"
> >     end
> > 
> > Does that answer the question, or am I misunderstanding?
> 
> I was just wondering about the utility of a method that got attached
> both to the class and the instance, since the value of 'self' would be
> very different in each case. Can you give me an example?

Math::sin 1
include Math
sin 1

-- 
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com