title: How to give a constant function scope in ruby?
body: <p>I'm new to Ruby and I want to know how to define a constant whose scope is limited to a function.</p>
  
  <pre><code>def foo(number)
     # I want this to be a constant defined only inside foo
     ABC = 123 
     return number * 123
  end
  </code></pre>