class Foo private def fooprivate puts "Test Private" endend</pre></code>So now if do object = Foo.newobject.fooprivate</code>We all know it will throw errorprivate method `foo_private' called for #Foo:0x007ff562084b48 (NoMethodError)</pre></code>
Agora chame-o em send
object.send (: foo_private) => # “Teste privado”