Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a note about what String#u does to the receiver

  • Loading branch information...
commit bbe15315e7ecefed94422ebc5db7800e5f6aaca6 1 parent d32f5ad
Nikolai Weibull authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/u-1.0.rb
2  lib/u-1.0.rb
View
@@ -12,6 +12,8 @@ module U
class String
# @return [U::String] A wrapper around the receiver that provides proper
# Unicode handling of its content
+ # @note The receiver will receive #encode(Encoding::UTF_8)#freeze and you
+ # should thus probably not use the receiver after invoking #u on it.
def u
U::String.new(self)
end
Please sign in to comment.
Something went wrong with that request. Please try again.