title: Why would you private encapsulate a private constant?
body: <p>I ran into this code:</p>
  
  <pre><code>class Foo &lt; Bar
    SM_CONSTANT = { 'a' =&gt; 'A', 'b' =&gt; 'B' }.freeze
    private_constant :SM_CONSTANT
  
    private
  
    def some_constant
      SM_CONSTANT
    end
  </code></pre>
  
  <p>I cannot figure out the purpose of <strong>encapsulating a private constant</strong> in a <strong>private method</strong>. Why would I do this?</p>