search for: call_on

Displaying 1 result from an estimated 1 matches for "call_on".

Did you mean: call_n
2013 Aug 29
2
Need a bit help on "module_function" method
...s of the original, and so may be changed independently. The instance-method versions are made private. *If used with no arguments, subsequently defined methods become module functions.* module Mod def one "This is one" end module_function :one end class Cls include Mod def call_one one end end Mod.one #=> "This is one" c = Cls.new c.call_one #=> "This is one" module Mod def one "This is the new one" end end Mod.one #=> "This is one" c.call_one #=> "This is the new one" Please help me to un...