P
petermichaux
Hi,
I've been programming JavaScript a lot lately and would like to find a
way to create and object without defining a class like the JavaScript
object literal. Is there a quick an dirty object in Ruby?
In JavaScript
var a = {foo: 34, bar:89}
a.foo
a.bar
Thanks,
Peter
I've been programming JavaScript a lot lately and would like to find a
way to create and object without defining a class like the JavaScript
object literal. Is there a quick an dirty object in Ruby?
In JavaScript
var a = {foo: 34, bar:89}
a.foo
a.bar
Thanks,
Peter