From: Ruby Student Date: 2010-10-20T00:11:05+09:00 Subject: Re: A question about require when using Shoes --001485f1db747ef6050492f9b39e Content-Type: text/plain; charset=ISO-8859-1 Gents, Here is what works. This example only works when I add the keyword *Math*::. That is the reason why I wanted to use *require 'Math'*. class MyClass def initialize # blah blah blah end def aMethod # more blah end *alert Math::sqrt(81) #NOTE: If you do not add Math:: this does not work!!!!!!!!!!!* * v = 125 alert Math::sqrt(v)* end #MyClass Shoes.app :title => "My Title", :resizable => false do flow :width => "100%", :margin => 6 do stack :width => "30%" do # blah blah *para Math::sqrt(144)* end end stack :width => "70%" do # blah blah blah end end Thank you On Tue, Oct 19, 2010 at 5:40 AM, Steve Klabnik wrote: > I think Justin is right, in that you should be able to just use Math, > but if you need to require a gem, the proper way is with Shoes.setup: > > > http://github.com/shoes/shoes/wiki/Clearing-Up-The-Whole-Shoes-And-RubyGems-Deal- > > -- Ruby Student --001485f1db747ef6050492f9b39e--