Imobach GonzáÍez Sosa wrote: >Hi all, > >I've got a little curiosity about defining methods. As far as I know (and >maybe I'm wrong) functions doesn't exist in Ruby... right? Ruby only have >methods. > > That's right >However, I can do this: > ><code> >#!/usr/bin/env ruby > >def test > puts "This is a test" >end > >test ></code> > >If test is really a method... what class it belongs to? Or is it a function >and I've missed something? > > > test is added as a private method of the class Object. >Thank you. > >PD: OK, I know, I'm more worried about conceptual point of view that I'd must >be ;-) > > > HTH Best Regards Mark Sparshatt