From: "Imobach González Sosa" Date: 2004-03-20T05:48:14+09:00 Subject: Defining methods outside classes 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. However, I can do this: #!/usr/bin/env ruby def test puts "This is a test" end test If test is really a method... what class it belongs to? Or is it a function and I've missed something? Thank you. PD: OK, I know, I'm more worried about conceptual point of view that I'd must be ;-) -- (o_.' Imobach Gonz�lez Sosa imobachgs@softhome.net //\c{} imobachgs@step.es a2419@dis.ulpgc.es V__)_ imodev@softhome.net osoh en jabber.at y jabber.org Usuario Linux #201634 Debian GNU/Linux `Sarge' con n�cleo 2.4.24 sobre Intel Pentium 4 Juventud, �sabes que la tuya no es la primera generaci�n que anhela una vida plena de belleza y libertad? -- Albert Einstein. (1879-1955) F�sico alem�n.