There is a nice function in RubyEnumerator which makes it easy to return an
enumerator object if someone just does a.each without specifying a block.
I'm just curious why it's not public? Was this a design decision?
Thanks
Jon
Ah, it looks like RubyEnumeratorKernel provides obj_to_enum. That works
perfectly.
Sorry for all the questions :S
2011/10/20 Jonathan Coveney
> There is a nice function in RubyEnumerator which makes it easy to return an
> enumerator object if someone just does a.each without specifying a block.
JRuby sometimes forgets to wrap Java-classes
Key: JRUBY-6151
URL: https://jira.codehaus.org/browse/JRUBY-6151
Project: JRuby
Issue Type: Bug
Components: Java Integration
Affects Vers