On 12/15/05, Maninder, Singh <[EMAIL PROTECTED]> wrote:
> Suppose I have a hash -
> var h = $H({name: "john doe", email: "[EMAIL PROTECTED]", msg: "say hello to 
> me"});
>
> h.keys(); //gives me name/email/msg
> h.values() //gives me john doe/[EMAIL PROTECTED]/say hello...
>
> What if I want to know the value of name or email or msg?
>
> Does it have something like -
>
> h.value(name) or something? I want to be able to get the value using the key 
> without writing any loops.
>

h['name'] ?
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to