From: Eric Christopherson Date: 2012-02-09T06:49:24+09:00 Subject: Re: how crypt works On Wed, Feb 8, 2012 at 3:38 PM, Vic Trento wrote: > Hi, > can anybody gimme a example how crypt works with ruby, could not find > anything anywhere, just this info below, however I get all kind of > errors with my tries: Where I'm failing??? > > Tx > Dai > > > irb(main):011:0* "the_string".crypt(aa) > NameError: undefined local variable or method `aa' for main:Object >        from (irb):11 >        from /usr/local/bin/irb:12:in `
' > irb(main):012:0> exit > [backman@minsk ~]$ ruby -v > ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux] aa should be a two-character string -- you need to put it in quotes. When it's outside of quotes, Ruby assumes you intend it as a local variable or method name.