Support user specified class and method for Ruby