------ art_7313_25720122.1159796170968 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 10/2/06, Jan Svitok <jan.svitok / gmail.com> wrote: > > On 10/2/06, Luke Stark <Luke.Stark / mathworks.com> wrote: > > You may create singleton methods like so: > > I'll have one more go. This time I'll get it right. ;p obj.class.instance_eval do define_method(:method_name) do |*args| # Method goes here end end N.B. this actually works this time, because I tried it. Regards, Martin ------ art_7313_25720122.1159796170968--