From: Hasmukh Patel Date: 2012-02-10T05:31:05+09:00 Subject: While calling module, throwing error Mymodule.rb module Mymodule def Mymodule.mymessage puts "You have four weeks in a month" end end callingclass.rb #!/user/bin/ruby require "Mymodule" include Mymodule Mymodule.mymessage Throwing following error C:/Ruby193/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot loa d such file -- Mymodule (LoadError) from C:/Ruby193/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require ' from callingclass.rb:3:in `
' -- Posted via http://www.ruby-forum.com/.