lib/utf8/string.rb in utf8-0.1.2 vs lib/utf8/string.rb in utf8-0.1.3

- old
+ new

@@ -2,18 +2,17 @@ # Wraps your string in an UTF8-aware version of String def as_utf8 String::UTF8.new(self) end - class UTF8 - VERSION = "0.1.2" - + class UTF8 < ::String # 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 :[] + alias :codepoints :each_codepoint end end \ No newline at end of file