I'm a confused about why the following code works:
class Foo
private
def hello
puts "hello"
end
end
f = Foo.new
f.send(:hello)
whereas
f.hello will obviously fail.
I have tried this with private member setting as well and it also works.
Is send supposed to operate this way? The rdoc for it don't seem to
mention this. Thanks!
···
--
Posted via http://www.ruby-forum.com/.