method
new
v1_9_3_392 -
Show latest stable
-
0 notes -
Class: Error
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378
- 1_9_2_180
- 1_9_3_125 (0)
- 1_9_3_392 (0)
- 2_1_10
- 2_2_9
- 2_4_6
- 2_5_5
- 2_6_3
- What's this?
new(code)
public
Hide source
# File ext/dl/win32/lib/win32/registry.rb, line 168 def initialize(code) @code = code msg = "\00"".force_encoding(Encoding::ASCII_8BIT) * 1024 len = FormatMessageA.call(0x1200, 0, code, 0, msg, 1024, 0) msg = msg[0, len].force_encoding(Encoding.find(Encoding.locale_charmap)) super msg.tr("\r", '').chomp end