[#30589] [Bug #3391] Use single exclamation mark instead of double exclamation mark for IRB — Diego Viola <redmine@...>

Bug #3391: Use single exclamation mark instead of double exclamation mark for IRB

10 messages 2010/06/04

[#30672] [Bug #3411] Time.local 1916,5,1 #=> 1916-04-30 23:00:00 +0100 — Benoit Daloze <redmine@...>

Bug #3411: Time.local 1916,5,1 #=> 1916-04-30 23:00:00 +0100

12 messages 2010/06/08

[#30699] [Bug #3419] 1.9.2-preview3 possible bug with Rails 3 active_record sqlite_adapter — Joe Sak <redmine@...>

Bug #3419: 1.9.2-preview3 possible bug with Rails 3 active_record sqlite_adapter

9 messages 2010/06/09

[#30734] [Bug #3428] ri outputs ansi escape sequences even when stdout is not a tty — caleb clausen <redmine@...>

Bug #3428: ri outputs ansi escape sequences even when stdout is not a tty

11 messages 2010/06/11

[#30756] [Feature #3436] Spawn the timer thread lazily — Maximilian Gass <redmine@...>

Feature #3436: Spawn the timer thread lazily

15 messages 2010/06/13
[#32686] [Ruby 1.9-Feature#3436] Spawn the timer thread lazily — Mark Somerville <redmine@...> 2010/10/04

Issue #3436 has been updated by Mark Somerville.

[ruby-core:30849] Re: [Bug #3350] Protected methods & documentation

From: Marc-Andre Lafortune <ruby-core-mailing-list@...>
Date: 2010-06-22 04:43:59 UTC
List: ruby-core #30849
Hi,

On Thu, May 27, 2010 at 4:38 AM, Yusuke ENDOH <mame@tsg.ne.jp> wrote:
> Because whether protected methods can be called are context-sensitive.
> ...
> Object#methods may be also context-sensitive (IOW, Object#methods
> returns different results depending on where it is called), but the
> behavior is more difficult (for me) to understand than current one.

Sorry for the delay.

Yes, I agree with all this. I still wonder what actual cases exist
where one wants to call respond_to? and get true on a protected
method.

I would assume that you usually know what objects of your class
respond to and that you typically do not need to use duck typing this
way. On the other hand, other classes know nothing in general about
your classes and in cases of duck typing can be confused by a
protected method that they can't actually call.

I think that obj.respond_to?(:foo) should return false even if obj has
a protected method foo.

In This Thread