From: bill gate Date: 2012-06-13T21:15:18+09:00 Subject: What's different about defind class method? A.class_eval(<<-EOF, __FILE__, __LINE__) def method_a puts "calling method_a......" end EOF A.class_eval <<-EOF def method_b puts "calling method_b......" end EOF A.new.method_a A.new.method_b Why lot of Rails snippet code use __FILE__ __LINE__ -- Posted via http://www.ruby-forum.com/.