Sha256: 655dff63ad7f546e7059d437ef70998a1c962a1294693d9aae929ee2bec4abfd

Contents?: true

Size: 224 Bytes

Versions: 21

Compression:

Stored size: 224 Bytes

Contents

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

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
sys-filesystem-1.4.1 lib/sys/windows/sys/filesystem/helper.rb
sys-filesystem-1.4.0 lib/sys/windows/sys/filesystem/helper.rb
sys-filesystem-1.3.4 lib/sys/windows/sys/filesystem/helper.rb
sys-filesystem-1.3.3 lib/sys/windows/sys/filesystem/helper.rb
sys-filesystem-1.3.2 lib/sys/windows/sys/filesystem/helper.rb
sys-filesystem-1.3.1 lib/sys/windows/sys/filesystem/helper.rb
sys-filesystem-1.3.0 lib/sys/windows/sys/filesystem/helper.rb
sys-filesystem-1.2.0 lib/sys/windows/sys/filesystem/helper.rb
sys-filesystem-1.1.9 lib/sys/windows/sys/filesystem/helper.rb
sys-filesystem-1.1.8 lib/sys/windows/sys/filesystem/helper.rb
sys-filesystem-1.1.7 lib/sys/windows/sys/filesystem/helper.rb
sys-filesystem-1.1.6 lib/sys/windows/sys/filesystem/helper.rb
sys-filesystem-1.1.5 lib/sys/windows/sys/filesystem/helper.rb
sys-filesystem-1.1.4 lib/windows/sys/filesystem/helper.rb
sys-filesystem-1.1.3 lib/windows/sys/filesystem/helper.rb
sys-filesystem-1.1.2 lib/windows/sys/filesystem/helper.rb
sys-filesystem-1.1.1 lib/windows/sys/filesystem/helper.rb
win32-file-security-1.0.3 lib/win32/file/security/helper.rb
win32-file-security-1.0.2 lib/win32/file/security/helper.rb
sys-filesystem-1.1.0 lib/windows/sys/filesystem/helper.rb