in libraries/plist.rb [104:116]
def setting_from_plist(entry, path)
defaults_read_type_output = shell_out(defaults_executable, 'read-type', path, entry).stdout
data_type = defaults_read_type_output.split.last
if value.class == Hash
plutil_output = shell_out(plutil_executable, '-extract', entry, 'xml1', '-o', '-', path).stdout.chomp
{ key_type: data_type, key_value: Plist.parse_xml(plutil_output) }
else
defaults_read_output = shell_out(defaults_executable, 'read', path, entry).stdout
{ key_type: data_type, key_value: defaults_read_output.strip }
end
end