Method: ReservedNames::Win32::API::Net::StructHelpers#get

Defined in:
lib/chef/win32/api/net.rb

#get(key) ⇒ Object



69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'lib/chef/win32/api/net.rb', line 69

def get(key)
  if respond_to? key
    send(key)
  else
    val = self[key]
    if val.is_a? FFI::Pointer
      if val.null?
        nil
      else
        val.read_wstring
      end
    else
      val
    end
  end
end