title: Scope of private, protected, and public
body: <p>Within a Ruby class definition, what is the scopes of the private keyword in the following scenarios:</p>
  
  <pre><code>class Foo
  
    def bar_public
      puts "public"
    end
  
  private
    def bar_private
      puts "private"
    end
  
    def bar_public_2
      puts "another public"
    end
  
  end
  </code></pre>
  
  <p>Does private only act on bar_private? or on bar_public_2 as well?</p>