lib/charwidth/string.rb in charwidth-0.1.3 vs lib/charwidth/string.rb in charwidth-0.1.4

- old
+ new

@@ -6,9 +6,17 @@ end def normalize_charwidth!(options = {}) Charwidth.normalize!(self, options) end + + def to_full_width + dup.to_full_width! + end + + def to_full_width! + Charwidth.to_full_width!(self) + end end end ::String.class_eval do include ::Charwidth::String