lib/win32/process/helper.rb in win32-process-0.8.3 vs lib/win32/process/helper.rb in win32-process-0.9.0

- old
+ new

@@ -1,13 +1,13 @@ -class String - # Convert a regular string to a wide character string. This does not - # modify the receiver. - def to_wide_string - (self + 0.chr).encode('UTF-16LE') - end - - # Convert a regular string to a wide character string. This modifies - # the receiver. - def to_wide_string! - replace((self + 0.chr).encode('UTF-16LE')) - end +class String + # Convert a regular string to a wide character string. This does not + # modify the receiver. + def to_wide_string + (self + 0.chr).encode('UTF-16LE') + end + + # Convert a regular string to a wide character string. This modifies + # the receiver. + def to_wide_string! + replace((self + 0.chr).encode('UTF-16LE')) + end end \ No newline at end of file