[#18121] [Ruby 1.8.7 - Bug #405] (Open) ssl.rb:31: [BUG] Bus Error — Anonymous <redmine@...>

Issue #405 has been reported by Anonymous.

14 messages 2008/08/04

[#18130] Re: New array methods cycle, choice, shuffle (plus bug in cycle) — Brian Candler <B.Candler@...>

> Seriously though... Array.first is a noun.

10 messages 2008/08/05

[#18319] NEW Command: absolute_path() -- — "C.E. Thornton" <admin@...>

Core,

14 messages 2008/08/16
[#18321] Re: NEW Command: absolute_path() -- — Yukihiro Matsumoto <matz@...> 2008/08/18

Hi,

[#18381] [Bug #496] DRb.start_service(nil) is very slow — Hongli Lai <redmine@...>

Bug #496: DRb.start_service(nil) is very slow

11 messages 2008/08/25

[ruby-core:18268] Re: Am I right that this is wrong?

From: "Gregory Brown" <gregory.t.brown@...>
Date: 2008-08-13 14:55:45 UTC
List: ruby-core #18268
On Wed, Aug 13, 2008 at 9:33 AM, David A. Black <dblack@rubypal.com> wrote:
> Hi --
>
>  *  call-seq:
>  *     mod.instance_methods(include_super=true)   => array
>  *
>  *  Returns an array containing the names of public instance methods
>  *  in the receiver. For a module, these are the public methods; for a
>  *  class, they are the instance (not singleton) methods. With no
>  *  argument, or with an argument that is <code>false</code>, the
>  *  instance methods in <i>mod</i> are returned, otherwise the methods
>  *  in <i>mod</i> and <i>mod</i>'s superclasses are returned.
>
> Since include_super defaults to true, I believe the "With no argument"
> statement is wrong. These arbitrary boolean arguments are definitely
> confusing, so I just wanted to make sure I'm right that it's wrong.

I think you're right:

>> String.instance_methods == String.instance_methods(true)
=> true
>> String.instance_methods == String.instance_methods(false)
=> false

I'd actually prefer it as documented, rather than as implemented.
It'd be nice to default as hiding the parent methods.
But that's a whole other can of worms.

-- 
Technical Blaag at: http://blog.majesticseacreature.com | Non-tech
stuff at: http://metametta.blogspot.com

In This Thread