Permalink
Browse files

Add Symbol#intern in 1.9 mode.

  • Loading branch information...
1 parent 602c1f2 commit 4f159393963b58408201bdabca8d78fd07869ae2 @BanzaiMan BanzaiMan committed Jun 8, 2010
Showing with 5 additions and 2 deletions.
  1. +0 −2 spec/tags/1.9/ruby/core/symbol/intern_tags.txt
  2. +5 −0 src/org/jruby/RubySymbol.java
@@ -1,2 +0,0 @@
-fails:Symbol#intern returns self
-fails:Symbol#intern returns a Symbol
@@ -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;

0 comments on commit 4f15939

Please sign in to comment.