The library opens up the String class and adds a method writesize, which returns the size of the string.
Damfly
gem "my_string_extend_dh", "~> 0.0.1"