ruby: add support for method overloading