1.9 から追加された Kernel#public_send send と違って private メソッドを呼び出せない。 class A def say hello end private def hello puts 'hello' end end A.new.send :say #=> hello A.new.send :hello #=> hello A.new.public_send :say #=> hello A.…
引用をストックしました
引用するにはまずログインしてください
引用をストックできませんでした。再度お試しください
限定公開記事のため引用できません。