title: Ruby methods and ordering of multiple default values
body: <p>I seem to not be able to do this (which I used to be able to do in Python). Let me explain ..</p>
  
  <p>Suppose I have the following method in Ruby:</p>
  
  <pre><code>def someMethod(arg1=1,arg2=2,arg3=3)
  ...
  ...
  ...
  end
  </code></pre>
  
  <p>Now to call this method I could do</p>
  
  <pre><code>someMethod(2,3,4)
  someMethod(2,3)
  someMethod(2)
  </code></pre>
  
  <p>and the arguments are taken by their respective order.. but what if I want to give arg2 at some point in my programming and want the default values for arg1 and arg3?</p>
  
  <p>I tried writing someMethod(arg2=4) but this doesn't seem to work in Ruby 1.9.  What it does is it still thinks that arg1 is 4. In python I could at least get away with this, but in ruby I am not sure. Does anyone have any elegant ideas?</p>