[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-talk
Subject: Re: Method behaves differently when called using #send
From: Daniel Brockman <daniel () brockman ! se>
Date: 2005-08-31 17:11:40
Message-ID: 87fysqqbok.fsf () wigwam ! deepwood ! net
[Download RAW message or body]
Daniel Brockman <daniel@brockman.se> writes:
> Eric Mahurin <eric_mahurin@yahoo.com> writes:
>
>> I wonder what the general preferences are for bypassing
>> method protection: #send vs. #instance_eval.
>
> I prefer using Module#public to nuke access restrictions
> that IMHO shouldn't be there in the first place.
>
> class Module
> public :define_method, :remove_method, :undef_method
> end
I forgot this:
class Module
public :include
end
Not to mention this one. :-)
class Module
public :public
end
--
Daniel Brockman <daniel@brockman.se>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic