I am playing with Shoes and Ruby and wanted to use the Math library on
simple Ruby program.
I tried putting the require stmt BEFORE the class MyClass and it did
I then tried putting the require stmt BEFORE the Shoes.app
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:
blah blah blah
def aMethod more blah end
Shoes.app :title => “My Title”, :resizable => false do
flow :width => “100%”, :margin => 6 do
stack :width => “30%” do
stack :width => "70%" do blah blah blah end end # flow