Mauricio FernŠŌdez ha scritto:

>>def g; puts 'g'; end
> 
>      ^^^
>   def self.g  or better  module_function :g  too

why better module_function ?

PS

giulio, your name sounds italian, if you are not aware of
the italian ruby user group you may like to visit
ada2.unipv.it/ruby and join the mailing list