From: Thomas Sawyer Date: 2012-04-06T08:07:05+09:00 Subject: Re: Call for comments - Structure I think this is a good project idea on two counts 1) better Struct b/c it makes a real class and 2) indifferent access of keys. Might not be a bad idea to add some alternate constructors too, e.g. wouldn't mind seeing a DSL builder style constructor: Book = Structure.new(:title, :isbn) Book.build do title "A Book" isbn "000000000" end Also, what about default values? e.g. Point = Structure.new(:x=>0,:y=>1) Also, >> #to_a, #to_h, #to_s, #to_i +1 -- Posted via http://www.ruby-forum.com/.