Sha256: 80c8204e68b79c7dc57a41b0f802589ca83b63372c5c3d82fef2d8a11612d532

Contents?: true

Size: 1.15 KB

Versions: 10

Compression:

Stored size: 1.15 KB

Contents

CFPropertyList implementation
class to read, manipulate and write both XML and binary property list
files (plist(5)) as defined by Apple. Have a look at CFPropertyList::List
for more documentation.

== Installation

You could either use ruby gems and install it via

  gem install CFPropertyList

or you could clone this repository and place it somewhere in your load path.

== Example
  require 'cfpropertylist'

  # 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(:file => "example.plist")
  data = CFPropertyList.native_types(plist.value)

Author::    Christian Kruse (mailto:cjk@wwwtech.de)
Copyright:: Copyright (c) 2010
License::   MIT License

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
CFPropertyList-3.0.7 README.rdoc
CFPropertyList-3.0.6 README.rdoc
CFPropertyList-3.0.5 README.rdoc
CFPropertyList-3.0.4 README.rdoc
CFPropertyList-3.0.3 README.rdoc
CFPropertyList-3.0.2 README.rdoc
CFPropertyList-3.0.1 README.rdoc
cocoapods-dependency-html-0.0.2 vendor/bundle/gems/CFPropertyList-3.0.0/README.rdoc
cocoapods-dependency-html-0.0.1 vendor/bundle/gems/CFPropertyList-3.0.0/README.rdoc
CFPropertyList-3.0.0 README.rdoc