From: Usman Hussain on
Hi Guys,

Has anyone used the Luhn Algorithm before?

I need to write some ruby code to generate random card details but as my
ruby isnt to great im a bit stuck.

i have the code written by a previous developer in Python BUT i need to
convert it to ruby. does anyone know how to do this?

kind regards,
usman h hussain
--
Posted via http://www.ruby-forum.com/.

From: Hassan Schroeder on
On Thu, Aug 5, 2010 at 9:07 AM, Usman Hussain <usmanhhussain(a)gmail.com> wrote:

> Has anyone used the Luhn Algorithm before?
>
> I need to write some ruby code to generate random card details but as my
> ruby isnt to great im a bit stuck.

"There's A Gem For That"(tm) :-)

Google `ruby gem Luhn`

--
Hassan Schroeder ------------------------ hassan.schroeder(a)gmail.com
twitter: @hassan