title: Dynamically send a number of params to a method depending if parameters are nil or not
body: <p>I want to avoid doing this:</p>
  
  <pre><code>if a
       some_method(a, b)
  else
       some_method(b)
  end
  </code></pre>
  
  <p><strong>some_method</strong> is a function that accepts two parameters, first is a namespace, if not provided then it just accepts the method (b).</p>
  
  <p><strong>Notes:</strong></p>
  
  <ul>
  <li>I can't send 'a' with an empty string or nil.</li>
  <li>I can't modify <strong>some_method</strong>.</li>
  </ul>
  
  <p>Is there a way to do this in <strong>one single line</strong>?</p>