From: chiaro scuro Date: 2006-05-02T19:08:12+09:00 Subject: Re: from block to code (also: how to get the bindings of a block) ------=_Part_29343_33485203.1146564487935 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I like it :-) it feels very 'natural' in the recipe case. you could also go for a: take 2, :green, :tomatoes On 5/2/06, Christian Neukirchen wrote: > > Ross Bamford writes: > > > shopping_list "english breakfast" do > > tomatoes =3D 2, :green > > sausages =3D 3 > > eggs =3D 2, :big > > bacon =3D 4 > > the end > > > > shopping_list "banana milkshake" do > > milk =3D 1 > > bananas =3D 2 > > the end > > Just toying around: > > recipe "english breakfast" do |take| > take(2).green.tomatoes > take(3).sausages > take(2).big.eggs > take(4).slices.of.bacon > end > > > Ross Bamford - rosco@roscopeco.REMOVE.co.uk > -- > Christian Neukirchen http://chneukirchen.org > > -- Chiaroscuro --- Liquid Development: http://liquiddevelopment.blogspot.com/ ------=_Part_29343_33485203.1146564487935--