Actually, I guess it'd be

$ irb
irb(main):001:0> a = 1
=> 1
irb(main):002:0> Array(a)[0]
=> 1
irb(main):003:0> a = [1,2,3]
=> [1, 2, 3]
irb(main):004:0> Array(a)[0]
=> 1

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to