puts __FILE__class MyClass @@note = 'A' def sing_hello @@note.succ!.succ! print "Hello... ", @@note, " " end endmyObject = [MyClass.new, MyClass.new, MyClass.new]myObject.each { |stooge| stooge.sing_hello }