lib/extensions/string.rb in extensions-0.5.0 vs lib/extensions/string.rb in extensions-0.6.0
- old
+ new
@@ -292,10 +292,11 @@
end
end
end
end
+
ExtensionsProject.implement(String, :join) do
class String
#
# Join all the lines of the string together, and compress spaces. The resulting string
# will have no surrounding whitespace.
@@ -311,6 +312,5 @@
def join
gsub(/([ \t]*\n[ \t]*)+/, ' ').strip
end
end
end
-