title: In Ruby, inside a class method, is self the class or an instance?
body: <p>I know that <code>self</code> is the instance inside of an instance method. So, then, is <code>self</code> the class inside of a class method? E.g., Will the following work in Rails?</p>
  
  <pre><code>class Post &lt; ActiveRecord::Base
    def self.cool_post
      self.find_by_name("cool")
    end
  end
  </code></pre>