From: Ruby Student Date: 2010-10-20T01:24:05+09:00 Subject: Re: A question about require when using Shoes --0015174bdca87d61840492fa9186 Content-Type: text/plain; charset=ISO-8859-1 Matt, Thank you for educating me. I am still learning! Also, thank you for the link you gave me, "Just Enough Ruby", it appears interesting! That said, I tried to save typing by using *require 'Math'*, which did not work due to my obvious lack of knowledge. Thank you On Tue, Oct 19, 2010 at 11:59 AM, Matt Neuburg wrote: > Ruby Student wrote: > > > *alert Math::sqrt(81) #NOTE: If you do not add Math:: this does not > > work!!!!!!!!!!!* > > True, but that is not the same as "requiring" Math. You'll notice you > did not say "require" anywhere. > > If the problem is that you don't understand that a Module is a > namespace, you might find this discussion helpful: > > http://www.apeth.com/rubyIntro/justenoughruby.html > > It also explains what "require" means. m. > > -- > matt neuburg, phd = matt@tidbits.com > A fool + a tool + an autorelease pool = cool! > AppleScript: the Definitive Guide - Second Edition! > http://www.tidbits.com/matt/default.html#applescriptthings > > > -- Ruby Student --0015174bdca87d61840492fa9186--