Sha256: cba75dc698b0973ff39484b948d2a777c196c66355698bf9230a31a14265aa70

Contents?: true

Size: 1.16 KB

Versions: 80

Compression:

Stored size: 1.16 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

80 entries across 78 versions & 5 rubygems

Version Path
nixenvironment-0.0.161 lib/nixenvironment/CFPropertyList228/README
nixenvironment-0.0.160 lib/nixenvironment/CFPropertyList228/README
nixenvironment-0.0.159 lib/nixenvironment/CFPropertyList228/README
nixenvironment-0.0.158 lib/nixenvironment/CFPropertyList228/README
nixenvironment-0.0.157 lib/nixenvironment/CFPropertyList228/README
nixenvironment-0.0.156 lib/nixenvironment/CFPropertyList228/README
nixenvironment-0.0.155 lib/nixenvironment/CFPropertyList228/README
nixenvironment-0.0.154 lib/nixenvironment/CFPropertyList228/README
nixenvironment-0.0.153 lib/nixenvironment/CFPropertyList228/README
nixenvironment-0.0.152 lib/nixenvironment/CFPropertyList228/README
nixenvironment-0.0.150 lib/nixenvironment/CFPropertyList228/README
nixenvironment-0.0.148 lib/nixenvironment/CFPropertyList228/README
nixenvironment-0.0.141 lib/nixenvironment/CFPropertyList228/README
nixenvironment-0.0.147 lib/nixenvironment/CFPropertyList228/README
nixenvironment-0.0.146 lib/nixenvironment/CFPropertyList228/README
nixenvironment-0.0.145 lib/nixenvironment/CFPropertyList228/README
nixenvironment-0.0.144 lib/nixenvironment/CFPropertyList228/README
nixenvironment-0.0.143 lib/nixenvironment/CFPropertyList228/README
nixenvironment-0.0.142 lib/nixenvironment/CFPropertyList228/README
nixenvironment-0.0.138.1 lib/nixenvironment/CFPropertyList228/README