title: Calling proc as a hash key in Ruby
body: <p>Refers to - <a href="https://stackoverflow.com/questions/23385041/bizzare-way-of-calling-procs">bizzare way of calling Procs?</a></p>
  
  <p><a href="https://stackoverflow.com/users/2336231/broisatse">@BroiSatse</a> thanks a lot for the answer. One additional moment to clarify - what if one needs to pass extra arguments (added to the code as <code>param_1 and _2</code>):</p>
  
  <pre><code>def callbacks(param_1, param_2, procs)
    procs[:var_1].call(param_1)
    puts "Proceed"
    procs[:var_2].call(param_2)
  end
  
  callbacks(arg_1, arg_2, :var_1 =&gt; Proc.new {block_1},
           :var_2 =&gt; Proc.new {block_2})
  </code></pre>
  
  <p>What goes first? i.e. what will be passed first to execute the <code>def callbacks</code>- arguments (<code>arg_1, arg_2</code>) in place of params (<code>param_1, param_2</code>) or procs (<code>:var_1, :var_2</code>)? This is important to know to properly code the params line - <code>def callbacks(param_1, param_2, procs)</code>.</p>
  
  <p>Thanks in advance for any help.</p>