lib/win32/process/helper.rb in win32-process-0.7.2 vs lib/win32/process/helper.rb in win32-process-0.7.3
- 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
-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