Skip to content

Commit

Permalink
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 0 additions & 2 deletions spec/truffle/tags/core/string/uminus_tags.txt

This file was deleted.

2 changes: 0 additions & 2 deletions spec/truffle/tags/core/string/uplus_tags.txt

This file was deleted.

8 changes: 8 additions & 0 deletions truffle/src/main/ruby/core/string.rb
Original file line number Diff line number Diff line change
@@ -28,4 +28,12 @@ def downcase
s
end

def +@
frozen? ? dup : self
end

def -@
frozen? ? self : dup.freeze
end

end

0 comments on commit 860c94e

Please sign in to comment.