A
Angel Marques
Hi...I type
h = { "a" => 100, "b" => 200 }
or
d = { :c => 100, :f => 200 }
d.key(200)
and the console show me the next error:
undefined method `key' for {"a"=>100, "b"=>200}:Hash (NoMethodError)
what happens with this method, it's wrong?
thanks
h = { "a" => 100, "b" => 200 }
or
d = { :c => 100, :f => 200 }
d.key(200)
and the console show me the next error:
undefined method `key' for {"a"=>100, "b"=>200}:Hash (NoMethodError)
what happens with this method, it's wrong?
thanks