On Sat, 28 Oct 2006, matt neuburg wrote:

> Hugh Sasse <hgs / dmu.ac.uk> wrote:
> 
> > On Sat, 28 Oct 2006, matt neuburg wrote:
> > 
        [...]
> > > But that's just a vagary of how irb works. You couldn't do that in a
> > > real script. m.
> > 
> > Why not?  say_hello is now a method of Object, an ancestor of [1,3,5].
> > Challenge:  show us what the error is when it fails. :-)
> 
> matt-neuburgs-imac-g5:~ mattneub$ ruby
> 
> def howdy
>   puts "hi"
> end
> [1,2,3].howdy
> 
> -:4: private method `howdy' called for [1, 2, 3]:Array (NoMethodError)

Thank you.  Saw the other post about that being a private method after
posting.  I'd completely forgotten about that (as you can tell).
> 
> m.

        Thanks
        Hugh