A
Anthony Ob
p009mymethods1.rb:11: undefined local variable or method 'mtd' for
main"object <NameError>
=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
main"object <NameError>
=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