I'm using Ruby 1.8.2 and I'm reading the book "Programming Ruby 2nd
edition". In this book they say, that Ruby implements private methods by
not allowing another receiver than "self". After reading this, I tried
puts "Hello everyone!"
t = Test.new
t.send( "print_hello" )
This program runs just fine and prints "Hello everyone!".
Is this behaviour to be expected?
Posted via http://www.yqcomputer.com/