Hello,
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
the following:

class Test
 private
 def print_hello
  puts "Hello everyone!"
 end
end

t = Test.new
t.send( "print_hello" )


This program runs just fine and prints "Hello everyone!".



Is this behaviour to be expected?



Turing
-- 
Posted via http://www.ruby-forum.com/.