Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/windows/sys/filesystem/helper.rb
Instance Method Summary collapse
-
#wincode ⇒ Object
Convenience method for converting strings to UTF-16LE for wide character functions that require it.
Instance Method Details
#wincode ⇒ Object
Convenience method for converting strings to UTF-16LE for wide character functions that require it.
4 5 6 |
# File 'lib/windows/sys/filesystem/helper.rb', line 4 def wincode (self.tr(File::SEPARATOR, File::ALT_SEPARATOR) + 0.chr).encode('UTF-16LE') end |