>>>>> "J" == Jonathan Leighton <lists@turnipspatch.com> writes:
J> Should initialize() be public, private or protected, and why?
moulon% cat b.rb
#!/usr/bin/ruby
class A
protected
def initialize
end
end
p A.private_instance_methods(false)
p A.protected_instance_methods(false)
moulon%
moulon% ./b.rb
["initialize"]
[]
moulon%
Guy Decoux