From: Anthony Ob Date: 2010-09-27T06:32:03+09:00 Subject: Help! Undefined local variable p009mymethods1.rb:11: undefined local variable or method 'mtd' for main"object =begin p008mymethods1.rb interpolation refers to the process of inserting the result of an expression into a string literal the interpolation operator #(...) gets calculated seperately =end def mtf(arg1="Dibya", arg2="Shashank", arg3="shashank") "#{arg1}, #{arg2}, #{arg3}." end puts mtd puts mtd("ruby") Thats my whole ruby code from a tutorial http://rubylearning.com/satishtalim/writing_own_ruby_methods.html -- Posted via http://www.ruby-forum.com/.