Ruby idioms

Programming idioms in Ruby.

Memoised methods:

class MyClass
  def something
    @something ||= Something.new
  end
end