I didn't find an explanation for this result in Dave Thomas' book
Anybody volunteers a response?
Thanks,
Víctor
irb(main):001:0> a = %{ ant cat dog }
=> " ant cat dog "
irb(main):002:0> a.class
=> String
irb(main):003:0> a[2]
=> 110
irb(main):004:0> a[2].chr
=> "n"
Cheers
robert
--
use.inject do |as, often| as.you_can - without end
When you have somthing like
a = %{ ant cat dog }
=> " ant cat dog "
irb(main):002:0> a.class
=> String
irb(main):003:0> a[2]
=> 110
irb(main):004:0> a[2].chr
=> "n"
it displaying the ascii value of that character at that paticular place
cheers,
kranthi
On Wed, May 7, 2008 at 4:45 PM, Robert Klemme <short...@googlemail.com>
wrote: