Sha256: 98cbed5e383ad12eab387c370c5f89fa855fcd0aaa03eafb520655cb54e600eb

Contents?: true

Size: 219 Bytes

Versions: 2

Compression:

Stored size: 219 Bytes

Contents

class String
  # Convenience method for converting strings to UTF-16LE for wide character
  # functions that require it.
  def wincode
    (tr(File::SEPARATOR, File::ALT_SEPARATOR) + 0.chr).encode('UTF-16LE')
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sys-filesystem-1.4.3 lib/sys/windows/sys/filesystem/helper.rb
sys-filesystem-1.4.2 lib/sys/windows/sys/filesystem/helper.rb