M
Martin DeMello
I want a Structlike class that takes a hash constructor, so I can say
class A < MyStruct.new(*keys); end
a = A.newkey1 => val1, :key2 => val2)
Is there any way to base this off Struct?
martin
class A < MyStruct.new(*keys); end
a = A.newkey1 => val1, :key2 => val2)
Is there any way to base this off Struct?
martin