On Thu, Nov 29, 2012 at 11:58 PM, rekha meena <lists / ruby-forum.com> wrote:
> when we convert a hash to array.it takes one key value pair as a one
> argument
> and it gives the output as a key value pair..but if i give just index
> number and want output according to that it shows "nil" why???????

What "index number"?  A Hash is not indexed by number - unless you
specifically use numbers as keys.

> If it is working as an array then it should show me some value regarding
> the index number..
> Please correct me if i am wrong!!!!!!

A Hash is not working as an Array.  What do you mean?

Kind regards

robert

--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/