From: Aaron Patterson Date: 2012-04-28T05:28:18+09:00 Subject: Re: Global variable for spaces per tab? --/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 28, 2012 at 05:22:47AM +0900, Ryan Davis wrote: >=20 > On Apr 27, 2012, at 11:51 , Intransition wrote: >=20 > > Is there any global variable in Ruby for specifying how tabs ("\t") sho= uld be translated into spaces? >=20 > Huh? >=20 > Where would this global be used, exactly? I think the variable is $NUMBER_OF_SPACES_PER_TAB_FOR_TRANSLATION_SUBSTITUT= IONS. Here is the usage: $NUMBER_OF_SPACES_PER_TAB_FOR_TRANSLATION_SUBSTITUTIONS =3D 4 string.gsub(/\t/, ' ' * $NUMBER_OF_SPACES_PER_TAB_FOR_TRANSLATION_SUBSTIT= UTIONS) Hope that helps! --=20 Aaron Patterson http://tenderlovemaking.com/ --/9DWx/yDrRhgMJTb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) iQEcBAEBAgAGBQJPmwFqAAoJEJUxcLy0/6/GA/gH/RjMaFj8C2s5tfY5uNSnjn5v Bx9iR7NEKhlvKM7oGkWHs3ylNPIMmSIICBv9et9KMxifk7uNYDf1IGoYzRXQh9kj Q99RXlhN52W83gDtwaNd+GTzqufZiUORowrlCDNdraRAFfpVg5qZhVxbDFuMZxVQ 0QA3EbitGLX1CGZrBMl69V2iHkm3hNqLbV6pNJ/Jas1VJPJqe3RbJ+5BOMQcv2Zx gMq/Q03tJZBZiKvs8NDfSJZM7O2GfSlrWfpQ8XxXjXyRjYgTshIy16tAymzWl6QR w7m+/CUBRv/+a1AWjPxnw/krphDQm++WuY/p8ZRRRUtS9ouqhGdzhLC/IRKhFy8= =diNe -----END PGP SIGNATURE----- --/9DWx/yDrRhgMJTb--