RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in