Unable to define a ! method for a class
---------------------------------------
Key: JRUBY-5925
URL: https://jira.codehaus.org/browse/JRUBY-5925
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.6.3
Environment: Mac OS X 10.6, JRuby 1.6.3
Reporter: Andrew Selder
I'm porting code from MRI Ruby 1.9.2p180 and we have a null object class, part
of who's definition is:
class NullObject
...
def !
true
end
...
end
This works fine in MRI => !NullObject.new => true
Under JRuby, I get the following:
SyntaxError: /Volumes/WorkDisk/Fancat/fancat/gitsvn/code/lib/null_object.rb:45:
syntax error, unexpected tBANG
def !
^
require at org/jruby/RubyKernel.java:1038
require at
/Users/andrew/.rvm/gems/jruby-1.6.3/gems/activesupport-2.3.12/lib/active_support/dependencies.rb:182
--
This message is automatically generated by JIRA.
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