[#3986] Re: Principle of least effort -- another Ruby virtue. — Andrew Hunt <andy@...>

> Principle of Least Effort.

14 messages 2000/07/14

[#4043] What are you using Ruby for? — Dave Thomas <Dave@...>

16 messages 2000/07/16

[#4139] Facilitating Ruby self-propagation with the rig-it autopolymorph application. — Conrad Schneiker <schneik@...>

Hi,

11 messages 2000/07/20

[ruby-talk:03874] Re: main.method

From: Dave Thomas <Dave@...>
Date: 2000-07-06 14:27:40 UTC
List: ruby-talk #3874
ts <decoux@moulon.inra.fr> writes:

> >>>>> "D" == Dave Thomas <Dave@thomases.com> writes:
> 
> D> A second problem is that methods defined at the top-level are private, 
> D> so they cannot be called with a receiver, so you can't go messing with 
> [...]
> D>      public :globalBurp
> D>      puts globalBurp, "\n"
> 
>  Try
> 
> #       public :globalBurp
>         puts self.globalBurp, "\n"

Umm.. I did:

       def burp(global)
         puts global.globalBurp
       end


Or am I missing something?


Dave

In This Thread