Skip to content

Commit

Permalink
[Truffle] String#to_str now works properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum committed Mar 6, 2015
1 parent 7fdec90 commit 1ab7395
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion spec/truffle/tags/core/string/to_str_tags.txt

This file was deleted.

Expand Up @@ -1716,7 +1716,7 @@ public Object toI(RubyString string) {
}
}

@CoreMethod(names = "to_s")
@CoreMethod(names = { "to_s", "to_str" })
public abstract static class ToSNode extends CoreMethodNode {

public ToSNode(RubyContext context, SourceSection sourceSection) {
Expand Down
4 changes: 0 additions & 4 deletions truffle/src/main/ruby/core/string.rb
Expand Up @@ -11,8 +11,4 @@

class String

def to_str
self
end

end

0 comments on commit 1ab7395

Please sign in to comment.