Class: MacAppSync::Defaults::PlistConverter
- Inherits:
-
Object
- Object
- MacAppSync::Defaults::PlistConverter
- Defined in:
- lib/mac_app_sync/defaults/plist_converter.rb
Constant Summary collapse
- TYPE_MAPPINGS =
{ CFPropertyList::CFDate => :date, CFPropertyList::CFBoolean => :boolean, CFPropertyList::CFInteger => :integer, CFPropertyList::CFReal => :float, CFPropertyList::CFString => :string, CFPropertyList::CFUid => :cfuid, CFPropertyList::CFData => :data, CFPropertyList::CFDictionary => :dict, CFPropertyList::CFArray => :array }
Class Method Summary collapse
Class Method Details
.to_plist(value_data) ⇒ Object
21 22 23 |
# File 'lib/mac_app_sync/defaults/plist_converter.rb', line 21 def to_plist(value_data) build_plist_value(value_data.fetch("type"), value_data.fetch("value")) end |
.to_ruby(plist_data) ⇒ Object
17 18 19 |
# File 'lib/mac_app_sync/defaults/plist_converter.rb', line 17 def to_ruby(plist_data) convert_plist_dict(plist_data) end |