Class: XCCache::PlistRepresentable

Inherits:
HashRepresentable show all
Defined in:
lib/xccache/core/syntax/plist.rb

Direct Known Subclasses

SPM::XCFramework::Metadata

Instance Attribute Summary

Attributes inherited from HashRepresentable

#path, #raw

Instance Method Summary collapse

Methods inherited from HashRepresentable

#[], #[]=, #initialize, #merge!, #reload

Constructor Details

This class inherits a constructor from XCCache::HashRepresentable

Instance Method Details

#loadObject



6
7
8
9
10
11
# File 'lib/xccache/core/syntax/plist.rb', line 6

def load
  plist = CFPropertyList::List.new(file: path)
  CFPropertyList.native_types(plist.value)
rescue StandardError
  {}
end

#save(to: nil) ⇒ Object

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/xccache/core/syntax/plist.rb', line 13

def save(to: nil)
  raise NotImplementedError
end