A
Abder-Rahman Ali
I have this script with slight change from "The Little Book Of Ruby":
http://pastie.org/private/6wgnmrtsodlmbh3ib1vg
If I type the following: puts MyModule.greet
I get the required result.
But, there is an instance method inside the module "greet". How can I
call that method at the time modules CANNOT be instantiated?
Thanks.
http://pastie.org/private/6wgnmrtsodlmbh3ib1vg
If I type the following: puts MyModule.greet
I get the required result.
But, there is an instance method inside the module "greet". How can I
call that method at the time modules CANNOT be instantiated?
Thanks.