Permalink
Browse files

Added String#+

  • Loading branch information...
vidarh committed Sep 25, 2014
1 parent 83f0333 commit ffda923a5f698de765b67751571b3639199d9b97
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/core/string.rb
View
@@ -198,6 +198,14 @@ def <<(other)
concat(other)
end
# FIXME: Horribly inefficient
def + other
s = ""
s << self
s << other
s
end
end
# FIXME: This is an interesting bootstrapping problem

0 comments on commit ffda923

Please sign in to comment.