I copied the code listed below and attempted to run it. It crashes with
the
following messages.
ruby arrow000.rb
/usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/lib/shoes/app.rb:625:in block in arrow': undefined method*’ for nil:NilClass (NoMethodError)
from
/usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/lib/shoes/app.rb:569:in instance_eval' from /usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/lib/shoes/app.rb:569:inblock in shapebase’
from
/usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/lib/shoes/app.rb:573:in call' from /usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/lib/shoes/app.rb:573:inshapebase’
from
/usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/lib/shoes/app.rb:593:in shape' from /usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/lib/shoes/app.rb:624:inarrow’
from arrow000.rb:12:in block in <main>' from /usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/lib/shoes/main.rb:98:ininstance_eval’
from
/usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/lib/shoes/main.rb:98:in app' from arrow000.rb:2:in’
Actually, an image of a broken arrow is fine. Thank you for the
suggestion.
Where can I find a copy of the manual for green-shoes?
Also, what’s the difference between green-shoes and the non green-shoes?
Or
please point to a url where I can read about it.
Do you want to draw a broken arrow?
How about using shape method like this:
require “green_shoes”
Shoes.app do
fill red
nostroke
shape do
move_to 50, 20
line_to 50, 125
line_to 120, 180
line_to 100, 200
line_to 150, 200
line_to 150, 150
line_to 130, 170
line_to 65, 120
line_to 65, 20
line_to 50, 20
end
end
Where can I find a copy of the manual for green-shoes?
I have no PDF manual.
But if HTML manual is okay, try to the following steps.
You can make it by yourself.
Now this is awesome! That red, broken arrow looks nice!
I’m looking forward on learning shoes.
BTW, the build of the html manual did not work. But that’s fine. As long
as
I can get to the manual using the instructions provided is just fine.
It looks like a Ruby issue:
*You may have encountered a bug in the Ruby interpreter or extension
libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
Also, what’s the difference between green-shoes and the non green-shoes?
Respective differences are stated in the green shoes manual under each
category if applicable. Like so: