On 4/17/07, Kyle Schmitt <kyleaschmitt / gmail.com> wrote: > Wow. That's quite useful. And quite the opposite of what I've read > somewhere. > My own fault for reading and not experimenting :) > > --Kyle > > I am not sure I am reading you correctly as I do not see the context in your posts, let me try to clarify with some code though, but the bottom line is: There is no method overloading in Ruby. 508/8 > cat over.rb && ./over.rb #!/usr/local/bin/ruby # vim: sts=2 sw=2 expandtab nu tw=0: def a puts 'a with no param' end a def a b puts "a(#{b})" end a 42 a a with no param a(42) ./over.rb:15:in `a': wrong number of arguments (0 for 1) (ArgumentError) from ./over.rb:15 HTH Robert -- You see things; and you say Why? But I dream things that never were; and I say Why not? -- George Bernard Shaw