title: Which Ruby memoize pattern does ActiveSupport::Memoizable refer to?
body: <p>So in Rails 3.2, ActiveSupport::Memoizable has been deprecated.</p>
  
  <p>The message reads:</p>
  
  <pre><code>DEPRECATION WARNING: ActiveSupport::Memoizable is deprecated and
  will be removed in future releases,simply use Ruby memoization
  pattern instead.
  </code></pre>
  
  <p>It refers to "Ruby memoization pattern" (singular) as if there's one pattern we should all know and refer to...</p>
  
  <p>I presume they mean something like:</p>
  
  <pre><code>def my_method
    @my_method ||= # ... go get the value
  end
  </code></pre>
  
  <p>or </p>
  
  <pre><code>def my_method
    return @my_method if defined?(@my_method)
  
    @my_method = # ... go get the value
  end
  </code></pre>
  
  <p>Is there something else I've missed?</p>