Sha256: e680e2191f99f90838943cc62047392b5ae5636ef6162ce7d9d140a753da69a1
Contents?: true
Size: 314 Bytes
Versions: 5
Compression:
Stored size: 314 Bytes
Contents
# Reopen core Ruby classes here and add some custom methods. class String # Convenience method for converting strings to UTF-16LE for wide character # functions that require it. #-- # TODO: Use a refinement. def wincode (tr(File::SEPARATOR, File::ALT_SEPARATOR) + 0.chr).encode('UTF-16LE') end end
Version data entries
5 entries across 5 versions & 1 rubygems