Class: XCCache::SPM::XCFramework::Metadata

Inherits:
PlistRepresentable show all
Defined in:
lib/xccache/spm/xcframework/metadata.rb

Defined Under Namespace

Classes: Library

Instance Attribute Summary

Attributes inherited from HashRepresentable

#path, #raw

Instance Method Summary collapse

Methods inherited from PlistRepresentable

#load, #save

Methods inherited from HashRepresentable

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

Constructor Details

This class inherits a constructor from XCCache::HashRepresentable

Instance Method Details

#available_librariesObject



31
32
33
# File 'lib/xccache/spm/xcframework/metadata.rb', line 31

def available_libraries
  @available_libraries ||= raw.fetch("AvailableLibraries", []).map { |h| Library.new.merge(h) }
end

#triplesObject



35
36
37
# File 'lib/xccache/spm/xcframework/metadata.rb', line 35

def triples
  @triples ||= available_libraries.flat_map(&:triples)
end