Sha256: 840e84d84ea8c6e2082cf6933de2f6c4b2fe28054fe7dd07b60d9f0c76462a60
Contents?: true
Size: 357 Bytes
Versions: 1
Compression:
Stored size: 357 Bytes
Contents
class String # Wraps your string in an UTF8-aware version of String def as_utf8 String::UTF8.new(self) end class UTF8 VERSION = "0.1.0" # Gives you access to the raw non-UTF8-aware version of the string def as_raw ::String.new(self) end alias :size :length alias :chars :each_char alias :slice :[] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
utf8-0.1.0 | lib/utf8/string.rb |