Packages, modules


#1

i cant make sense in my own mind what is happening,
so if someone can explain, it would be appreciated.
I did the following on the command line…

require ‘md5’
=>true

t = MD5
=>Digest::MD5

t.md5(‘confused’)
=>1a7f2a5ad77128b2f81feddac78df213

so far so good, now start new command line

or unload module

require ‘digest/md5’
=>true

Digest::MD5.md5(‘confused’)
=>NoMethodError

#shouldn’t this work? bit confused how the package

and methods sit together.