Re: [Rails] noob question string problem
On Sat, Jun 12, 2010 at 9:49 AM, rpuspana <rpuspana@gmail.com> wrote:
> a = "parsley"
>
> but a[0] returns 112 which is ASCII for 'o' not 'p'
> is somethig wrong with my ruby or my code??
I think something's wrong with the ASCII lookup table you're using :-)
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home