Missing methods on
------------------

                 Key: JRUBY-2134
                 URL: http://jira.codehaus.org/browse/JRUBY-2134
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1RC2
            Reporter: Marc Cooper


When, in MRI, I say:

  def blah(str)
    reg = Oniguruma::ORegexp.new('...')
    reg.match_all(str)
  end

all is good. But, in JRuby:

  def blah(str)
    reg = Regexp.new('...')
    reg.match_all(str)
  end

there is no #match_all. The release docs[1] say:

* Add ORegexp#scan instead of match_all
oregexp.scan(str) {|match_data| ... } # => MultiMatchData

  def blah(str)
    reg = Regexp.new('...')
    reg.scan(str) {|match| puts match}
  end

reports that #scan is private.

D:\jruby>jruby --version
ruby 1.8.6 (2008-02-17 rev 5944) [x86-jruby1.1RC2]

Charlie said:

  It must be a method that the Oniguruma gem adds, yes? We should probably 
  provide a built-in "oniguruma" extension that adds those methods to Regexp.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to