I’ve found myself writing the phrase “as soon as possible” just too often. Sometimes I wonder if it sounds a little rude. How can I convey the same meaning in a more polite way but without losing sense of urgency?


Question: How to properly override a method with unknown number of arguments?
Answer: The use of a slurpy arg is the right approach, but you should also handle any block arguments:

class Foo
  alias_method :__bar__,:bar
  def bar(*arg, &amp;block)
    #do something
    __bar__(*arg, &amp;block)
  end
end