IO#each should only take 1 argument
-----------------------------------
Key: JRUBY-1088
URL: http://jira.codehaus.org/browse/JRUBY-1088
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.0.0RC2
Environment: OS X 10.4.9, Java 1.5, JRuby 1.8.5 (2007-06-02 rev 3812)
[i386-jruby1.0.0RC3]
Reporter: Daniel Berger
Priority: Minor
The IO#each method appears to accept an unlimited number of arguments in JRuby.
It should only accept one.
{noformat}
handle = File.open('test.txt', 'w')
handle.each('x', 'y', 'z') # => Should raise ArgumentError
handle.close
{noformat}
--
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