I have a ruby hash, say
h={name: "john", age: "23"}
It is not an object, just a hash created from an object. I want to access its values with the method attribute as I access an object. i.e.:
h.name => "john"
h.age => 23
Is it possible to do this?
h[name] or h[age]?