ruby: auto add namespace when a function is added