Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/win32/file/windows/functions.rb

Instance Method Summary collapse

Instance Method Details

#wincodeObject

Convenience method for converting strings to UTF-16LE for wide character functions that require it.



46
47
48
# File 'lib/win32/file/windows/functions.rb', line 46

def wincode
  (self.tr(File::SEPARATOR, File::ALT_SEPARATOR) + 0.chr).encode('UTF-16LE')
end