[MacRuby-devel] String methods missing in MacRuby

Conrad Taylor conradwt at gmail.com
Sun Nov 29 12:37:12 PST 2009


On Sun, Nov 29, 2009 at 10:14 AM, Robert Rice <rice.audio at pobox.com> wrote:

> Thanks Jordon:
>
> I didn't realize that some core Ruby class methods changed for 1.9. I will
> update my documentation.
>
> Bob Rice
>
>
Bob, this has been well documented many months ago in both "Programming Ruby
1.9" by Dave Thomas et al and "The Programming Ruby Programming Language" by
Yukihiro Matsumoto aka Matz (i.e. the creator of the Ruby programming
language).

-Conrad


> On Nov 28, 2009, at 7:18 PM, Jordan Breeding wrote:
>
> > each is not documented for Ruby 1.9 that I know of, only for Ruby 1.8, do
> you have the Pragmatic books? They don't like each as valid for String in
> 1.9.
> >
> > If you need to file a bug though (especially for your split problem) try
> https://www.macruby.org/trac/report
> >
> > Jordan
> >
> > On Nov 28, 2009, at 18:09, Robert Rice wrote:
> >
> >> Hi Jordon:
> >>
> >> each is a documented method for the the string class so it should be
> provided. It is useful.
> >>
> >> How would I go about filing a bug report?
> >>
> >> Bob Rice
> >>
> >>
> >> On Nov 28, 2009, at 3:35 PM, Jordan Breeding wrote:
> >>
> >>> I think that String.each was mixed in from Enumerable, which 1.9 no
> longer does.
> >>>
> >>> each is not a method on String in 1.9 either, so I don't think this is
> a MacRuby problem.
> >>>
> >>> You should file a bug for the problem with split().
> >>>
> >>> On Nov 28, 2009, at 14:30, Robert Rice wrote:
> >>>
> >>>> Hi Group:
> >>>>
> >>>> The string.each method is undefined in MacRuby.
> >>>> I can work around it by using string.each_byte then convert the fixnum
> back to a character using the i.chr method.
> >>>>
> >>>> Also string.split( "" ) does not convert the string to an array as it
> did before.
> >>>>
> >>>> Bob Rice
> >>>> _______________________________________________
> >>>> MacRuby-devel mailing list
> >>>> MacRuby-devel at lists.macosforge.org
> >>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> >>>
> >>> _______________________________________________
> >>> MacRuby-devel mailing list
> >>> MacRuby-devel at lists.macosforge.org
> >>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> >>
> >> _______________________________________________
> >> MacRuby-devel mailing list
> >> MacRuby-devel at lists.macosforge.org
> >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> >
> > _______________________________________________
> > MacRuby-devel mailing list
> > MacRuby-devel at lists.macosforge.org
> > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20091129/c1865d04/attachment.html>


More information about the MacRuby-devel mailing list