From: Justin Collins Date: 2010-10-19T16:42:01+09:00 Subject: Re: A question about require when using Shoes On 10/18/2010 12:49 PM, Ruby Student wrote: > I am playing with Shoes and Ruby and wanted to use the Math library on my > simple Ruby program. > I tried putting the require stmt BEFORE the *class MyCl*ass and it did not > work. > I then tried putting the require stmt BEFORE the *Shoes.app* declaration, > and it did not work either. > > Where should I put the require "Math" stmt listed below? > > *require "Math"* and I also tried *require 'Math'* > > The following is basically my code structure: > > class MyClass > def initialize > blah blah blah > end > > def aMethod > more blah > end > end #MyClass > > Shoes.app :title => "My Title", :resizable => false do > flow :width => "100%", :margin => 6 do > stack :width => "30%" do > blah blah > end > end > > stack :width => "70%" do > blah blah blah > end > end # flow > end #Shoes > > > Thank you > > The Math library is always available, you do not need to require it. Did you try just using it? -Justin