From: Chad Perrin Date: 2011-07-14T14:27:41+09:00 Subject: Re: trying to send a string to google storage --qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 14, 2011 at 12:46:46PM +0900, Tyrel R. wrote: > So I have used this function from gstore gem >=20 > def add_file_to_bucket( bucket, name, file ) > @client.put_object( bucket, name, :data =3D> File.read( file ) ) > end This is very un-idiomatic Ruby, and you might want to consider at least altering your indentation style. Using your style: def foo # do stuff end =2E . . leaves hanging indents and clashes with idiomatic Ruby style. The way basically everybody else does it gives visual cues to the end of a given scope or semi-atomic chunk of code by pairing the def and the end at the same level of indentation: def foo # do stuff end --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] --qDbXVdCdHGoSgWSk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk4eenQACgkQ9mn/Pj01uKVHSwCgrAGlwZiPMeCXHoew74rEN+hl kxAAn0JK7Iop8XJSuAygLW3BpNXQoIiV =L6c3 -----END PGP SIGNATURE----- --qDbXVdCdHGoSgWSk--