![]() |
|
|
Issue Type:
|
Bug
|
Affects Versions:
|
JRuby 1.7.1 |
Assignee:
|
Unassigned |
Components:
|
Core Classes/Modules |
Created:
|
30/Dec/12 8:03 PM
|
Description:
|
Kernel.gsub is available when -p/-n command line option specified.
JRuby:
C:\Temp>jruby -v
jruby 1.7.1 (1.9.3p327) 2012-12-03 30a153b on Java HotSpot(TM) Client VM 1.7.0_09-b05 [Windows 8-x86]
C:\Temp>echo foo | jruby -pe 'gsub(/foo/, "bar")'
NoMethodError: undefined method `gsub' for main:Object
(root) at -e:1
MRI:
C:\Temp>ruby -v
ruby 1.9.3p362 (2012-12-25) [i386-mingw32]
C:\Temp>echo foo | ruby -pe 'gsub(/foo/, "bar")'
bar
Document link: http://www.ruby-doc.org/core-1.9.3/Kernel.html#method-i-gsub
|
Environment:
|
jruby 1.7.1 (1.9.3p327) 2012-12-03 30a153b on Java HotSpot(TM) Client VM 1.7.0_09-b05 [Windows 8-x86]
|
Project:
|
JRuby
|
Priority:
|
Major
|
Reporter:
|
Isamu Mogi
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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