List Info

Thread: (Somewhat) undocumented Change in Ruby 1.9: Module#constants returns Symbols instead of Strings




(Somewhat) undocumented Change in Ruby 1.9: Module#constants returns Symbols instead of Strings
user name
2008-03-25 03:23:07
Hi, one thing I came across when testing a project on Ruby 1.9.0-1: Module#constants now returns an Array of Symbols instead of an Array of Strings. Although the documentation for the Module class in trunk mentions the new form ( mod.constants => [:One, :Two]) (not in 1.9.0-1, though), the documentation for Module#constants still uses the old form. So, without further ado, here's my first patch to core . Greetings Florian Gilcher
  Approximate file size 572 bytes
Re: (Somewhat) undocumented Change in Ruby 1.9: Module#constants returns Symbols instead of Strings
user name
2008-03-26 04:10:20
Hi,

In message "Re: (Somewhat) undocumented Change in Ruby
1.9: Module#constants returns Symbols instead of
Strings"
    on Tue, 25 Mar 2008 17:23:07 +0900, Florian Gilcher
<floandersground.net> writes:

|Module#constants now returns an Array of Symbols instead of
an Array  
|of Strings.

Indeed.  Thank you for the patch.

							matz.


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )