From: Iain Barnett Date: 2011-04-13T23:53:46+09:00 Subject: Re: colliding method names On 13 Apr 2011, at 14:59, Josh Cheek wrote: > You can use #method > > > begin > method :foo # => > rescue > $! # => # > end > > def foo > end > method :foo # => # > > def self.foo > end > method :foo # => # > > > > "hello world".instance_eval do > > method :foo # => # > > class String > def foo > end > end > method :foo # => # > > def self.foo > end > method :foo # => # > > end Thanks, I'll have a play around with that. Much appreciated. Regards, Iain