Method: String#wincode
- Defined in:
- lib/windows/cng/helper.rb
#wincode ⇒ Object
Convenience method for converting strings to UTF-16LE for wide character functions that require it.
10 11 12 |
# File 'lib/windows/cng/helper.rb', line 10 def wincode (self.tr(File::SEPARATOR, File::ALT_SEPARATOR) + 0.chr).encode('UTF-16LE') end |