Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add Symbol#intern in 1.9 mode.

  • Loading branch information...
commit 4f159393963b58408201bdabca8d78fd07869ae2 1 parent 602c1f2
@BanzaiMan BanzaiMan authored
View
2  spec/tags/1.9/ruby/core/symbol/intern_tags.txt
@@ -1,2 +0,0 @@
-fails:Symbol#intern returns self
-fails:Symbol#intern returns a Symbol
View
5 src/org/jruby/RubySymbol.java
@@ -317,6 +317,11 @@ public IRubyObject to_sym() {
return this;
}
+ @JRubyMethod(name = "intern", compat = CompatVersion.RUBY1_9)
+ public IRubyObject to_sym19() {
+ return this;
+ }
+
@Override
public IRubyObject taint(ThreadContext context) {
return this;
Please sign in to comment.
Something went wrong with that request. Please try again.