From: 7stud -- Date: 2011-03-08T12:33:36+09:00 Subject: Re: basic programming question, help please 7stud -- wrote in post #986057: > > class Square > > def Square.class_meth1 > puts 'class_meth1' > end > > def self.class_meth2 > puts 'class_meth2' > end > > class << self > def class_meth3 > puts 'class_meth3' > end > end > > end > > --output:-- > class_meth1 > class_meth2 > class_meth3 > Whoops. That output is from the following method calls: Square.class_meth1 Square.class_meth2 Square.class_meth3 -- Posted via http://www.ruby-forum.com/.