title: How to define a private method in Ruby?
body: <p>Just started to learn Ruby. I'm confused with Ruby's <code>private</code> keyword.</p>
  <p>Let's say I have code like this</p>
  <pre class="lang-ruby prettyprint-override"><code>private
  
  def greeting
    random_response :greeting
  end
  
  def farewell
    random_response :farewell
  end
  </code></pre>
  <p>Does <code>private</code> only applied to the <code>#greeting</code> or both - <code>#greeting</code> and <code>#farewell</code>?</p>