普通のメソッドとクラスメソッドに同じ名前 (?) を付けても大丈夫。こんな感じ。 class Hoge def Hoge.methodABC() print "class method \n" end def methodABC() print "instance method \n" end end
Quote saved.
Login to quote this blog
Failed to save quote. Please try again later.
You cannot quote because this article is private.