I have been practicing with Shoes and currently enjoying it.
I came across this code...
Shoes.app :width => 400, :height => 260 do
flow do
@e = edit_line
button "Say it" do
@p.clear { para @e.text }
end
end
@p = flow
end
but then I started wondering why the @p.clear { para @e.text } and the
@p = flow
why not just...
Shoes.app :width => 400, :height => 260 do
flow do
@e = edit_line
button "Say it" do
para @e.text
end
end
end
can someone explain this please?
Thanks a lot!
--
Posted via http://www.ruby-forum.com/.