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:inrequire
’
from callingclass.rb:3:in `’