From: Ehsanul Hoque Date: 2009-10-30T11:36:19+09:00 Subject: Re: Ruby style question (many-arg methods) --_7f851ffb-0f30-4550-adee-6740a83f3d26_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Well=2C you should realize that leading whitespace on each new line is remo= ved in emails and the like. So use some web service instead=2C like pastie.= I assume you mean you use this method currently: http://pastie.org/676220 Well=2C I might do something like this (but I'm sure many would consider th= at ugly - just a personal preference really): http://pastie.org/676224 > Date: Fri=2C 30 Oct 2009 11:22:12 +0900 > From: cruzmail.ngreen@gmail.com > Subject: Re: Ruby style question (many-arg methods) > To: ruby-talk@ruby-lang.org >=20 >=20 > >=20 > > Currently I use the last one=2C because that way at least there is a so= rt > > of ruby-ish block. But the "conceptual decoupling" of the function fro= m > > the block trips me up occasionally. > >=20 > > Anyway=2C just got frustrated reading old code and was wondering if any= one > > had a good solution for me =3Bp >=20 > Oops=2C wrote this all out of whack=2C currently I use this: >=20 > Net::SSH.start( > server=2C > user=2C: > password=3D>password=2C > :port=3D>port=2C > :other_stuff =3D> somevariable=2C > :foo =3D> bar=2C > :baz =3D> qux) do |ssh| > foo =3D new_foo > end >=20 > But thats a weird half-indentation thing and I dno how I feel about it=2C= =20 > would maybe work if ruby indentatino were 4-space. I've tried the last=20 > one (above) recently but the aforementioned decoupling trips me up > --=20 > Posted via http://www.ruby-forum.com/. >=20 =20 _________________________________________________________________ Windows 7: I wanted more reliable=2C now it's more reliable. Wow! http://microsoft.com/windows/windows-7/default-ga.aspx?h=3Dmyidea?ocid=3DPI= D24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_myidea:102009= --_7f851ffb-0f30-4550-adee-6740a83f3d26_--