Hi, Gurus,
The following code gets me wondering: how come the last "puts" gets
printed without initializing on the Foo class at all...
I would appreciate it if anyone can explain this to me. Thank you in
advance !!!
Nik
===== Code as Below =======
#/usr/bin/env ruby
puts "print as expected"
def bar
puts "Hello, World!"
end
class Foo
def initialize
end
puts "How does this get printed without Foo.new???"
end
--
Posted via http://www.ruby-forum.com/.