[#3228] Core support for Gems, and namespace — "Luke A. Kanies" <luke@...>

Hi all,

21 messages 2004/07/27
[#3230] Re: Core support for Gems, and namespace — Austin Ziegler <halostatue@...> 2004/07/27

On Tue, 27 Jul 2004 11:39:08 +0900, Luke A. Kanies <luke@madstop.com> wrote:

[#3234] Re: Core support for Gems, and namespace — "Luke A. Kanies" <luke@...> 2004/07/27

On Tue, 27 Jul 2004, Austin Ziegler wrote:

[#3238] Re: Core support for Gems, and namespace — Austin Ziegler <halostatue@...> 2004/07/27

On Wed, 28 Jul 2004 00:14:29 +0900, Luke A. Kanies <luke@madstop.com> wrote:

Is this a commit miss?

From: Kent Sibilev <ksibilev@...>
Date: 2004-07-27 21:20:42 UTC
List: ruby-core #3240
Using the CVS HEAD version with this commit:

Tue Jul 27 07:05:04 2004  Yukihiro Matsumoto  <matz@ruby-lang.org>

         * eval.c (rb_eval): copy on write for argument local variable
           assignment.

         * eval.c (assign): ditto.

         * eval.c (rb_call0): update ruby_frame->argv with the default
           value used for the optional arguments.

         * object.c (Init_Object): "===" calls rb_obj_equal() directly.
           [ruby-list:39937]

I get this exception:

$ ri Array
/usr/local/lib/ruby/1.9/rdoc/ri/ri_formatter.rb:22:in `initialize': 
undefined method `width' for #<Array:0x550ed8> (NoMethodError)
         from /usr/local/lib/ruby/1.9/rdoc/ri/ri_formatter.rb:401:in 
`initialize'
         from /usr/local/lib/ruby/1.9/rdoc/ri/ri_display.rb:43:in `new'
         from /usr/local/lib/ruby/1.9/rdoc/ri/ri_display.rb:43:in 
`initialize'
         from /usr/local/lib/ruby/1.9/rdoc/ri/ri_display.rb:27:in `new'
         from /usr/local/lib/ruby/1.9/rdoc/ri/ri_display.rb:27:in `new'
         from /usr/local/lib/ruby/1.9/rdoc/ri/ri_options.rb:241:in 
`displayer'
         from /usr/local/lib/ruby/1.9/rdoc/ri/ri_driver.rb:26:in 
`initialize'
         from /usr/local/bin/ri:20:in `new'
         from /usr/local/bin/ri:20

This exception happens on this line of code

     @formatter = @options.formatter.new(@options, "     ")

Ruby interprets it the way that 'initialize' method of the formatter 
object receives as a first argument not @options object but an array 
[@options].

Cheers,
Kent.


In This Thread

Prev Next