Sha256: 5be735c578a79169ea87095613f6a9ef9203fdd2ec9a6e6a4b7d374819b5a2e4

Contents?: true

Size: 939 Bytes

Versions: 12

Compression:

Stored size: 939 Bytes

Contents

CFPropertyList implementation
class to read, manipulate and write both XML and binary property list
files (plist(5)) as defined by Apple

== Example

  # create a arbitrary data structure of basic data types
  data = {
    'name' => 'John Doe',
    'missing' => true,
    'last_seen' => Time.now,
    'friends' => ['Jane Doe','Julian Doe'],
    'likes' => {
      'me' => false
    }
  }

  # create CFPropertyList::List object
  plist = CFPropertyList::List.new

  # call CFPropertyList.guess() to create corresponding CFType values
  plist.value = CFPropertyList.guess(data)

  # write plist to file
  plist.save("example.plist", CFPropertyList::List::FORMAT_BINARY)

  # … later, read it again
  plist = CFPropertyList::List.new("example.plist")
  data = CFPropertyList.native_types(plist.value)

Author::    Christian Kruse (mailto:cjk@wwwtech.de)
Copyright:: Copyright (c) 2010
License::   Distributes under the same terms as Ruby

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
plist4r-1.2.2 lib/plist4r/backend/c_f_property_list/README
plist4r-1.2.1 lib/plist4r/backend/c_f_property_list/README
plist4r-1.1.6 lib/plist4r/backend/c_f_property_list/README
plist4r-1.1.5 lib/plist4r/backend/c_f_property_list/README
plist4r-1.1.4 lib/plist4r/backend/c_f_property_list/README
plist4r-1.1.3 lib/plist4r/backend/c_f_property_list/README
plist4r-1.1.2 lib/plist4r/backend/c_f_property_list/README
plist4r-1.1.1 lib/plist4r/backend/c_f_property_list/README
plist4r-1.1.0 lib/plist4r/backend/c_f_property_list/README
plist4r-1.0.1 lib/plist4r/backend/c_f_property_list/README
plist4r-1.0.0 lib/plist4r/backend/c_f_property_list/README
CFPropertyList-2.0.7 README