|
RE: Q) about singleton methods and access control: msg#01203lang.ruby.general
Hmmm... doesn't make much sense to my C++ mind and freshly battered Ruby mind, but I'll accept it. Thanks for the help guys (Christoph, Kent). I'll use the 'send' hack for now. :> Cheers, Patrick Bennett -----Original Message----- From: Kent Dahl [mailto:kentda@xxxxxxxxxxxx] Sent: Tuesday, August 13, 2002 3:30 AM To: ruby-talk ML Subject: Re: Q) about singleton methods and access control Patrick Bennett wrote: > Christoph wrote: > >No, the call is on the ``class Level'' - for example I get > > > No it's not. I was calling testObj.xxxxx - that's definitely an > "instance" level call. :\ > Arrgggh.... You are missing the point. When you call testObj.xxxx, yes you are calling a instance method. However, you are _not_ making an instance level call. What is meant by "instance level" is the context the call is made from. And the context is a class singleton method, not an instance method. HTH
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Ruby and Eclipse, Booth, Peter |
|---|---|
| Next by Date: | Re: ruby-dev summary 17875-17964, Paul Brannan |
| Previous by Thread: | Re: Q) about singleton methods and access control, Kent Dahl |
| Next by Thread: | Re: Q) about singleton methods and access control, Christoph |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |