From: Richard Conroy Date: 2012-01-06T19:03:28+09:00 Subject: Re: Shoes Experts - Can someone explain this --e89a8f3bad47dd2a8204b5d9283c Content-Type: text/plain; charset=ISO-8859-1 If you use both what is the difference? My guess is that it is cleaning up the canvas where the text is written (not an expert) On Fri, Jan 6, 2012 at 12:27 AM, Fily Salas wrote: > 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/. > > -- http://richardconroy.blogspot.com | http://twitter.com/RichardConroy --e89a8f3bad47dd2a8204b5d9283c--