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/.