* Mario Ruiz <mario / betware.com> [2008-11-20 01:58:02 +0900]:

> So, there is not an easier way to call a method inside a module... 
> something like:
> 
> MyModule.myMethod
> 
> or
> 
> MyModule.method(myName).call

How about this:
irb(main):001:0> module MyModule
irb(main):002:1>   class MyClass
irb(main):003:2>     def mymethod
irb(main):004:3>       "hello"
irb(main):005:3>     end
irb(main):006:2>   end
irb(main):007:1> end
=> nil
irb(main):008:0> MyModule::MyClass.new.mymethod
=> "hello"

saji
---

-- 
Saji N. Hameed

APEC Climate Center          				+82 51 668 7470
National Pension Corporation Busan Building 12F         
Yeonsan 2-dong, Yeonje-gu, BUSAN 611705			saji / apcc21.net
KOREA