From: "Pedro CĂ´rte-Real" Date: 2006-07-25T20:20:31+09:00 Subject: Re: Defining a method with an argument with a default value On 7/25/06, Dr Nic wrote: > You could do the following: > > Foo.class_eval do > def bar(tar=0) > tar * 2 > end > end Yep, this works great, thanks. It's an eval but it's the one with a block instead of a string. Didn't know "def" worked inside a block. Must free myself of silly mental restrictions brought over from lesser languages... :) Thanks, Pedro.