Sha256: 2105a4af37c1f569a99986247976a5fe35ae7962302388564d79e138ab21988d
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.1" # 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.1 | lib/utf8/string.rb |