Improve your ruby by reading Rails code
If you’d like to improve your ruby chops, it’s hard to do better than reading some of the excellent code in Rails. In a 5-minute screencast, I did just that, taking you through an nifty class in ActiveSupport. Check it out.
Comments
OrderedOptions look very similar to OpenStruct.
require 'ostruct'
h = OpenStruct.new h.foo = :bar
p h.foo</em></code>
OpenStruct has a bit more features, though.
Post a comment