模組 Resolv::SZ

公開實例方法

read_s(key) 按一下以切換來源

針對損壞的登錄檔進行特別處理

# File ext/win32/lib/win32/resolv.rb, line 53
def read_s(key)
  type, str = read(key)
  unless type == Registry::REG_SZ
    warn "Broken registry, #{name}\\#{key} was #{Registry.type2name(type)}, ignored"
    return String.new
  end
  str
end