Forum: Ruby on Rails packages, modules

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Simon (Guest)
on 2006-05-24 07:25
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.
This topic is locked and can not be replied to.