Method: Pod::Podfile::TargetDefinition.from_hash
- Defined in:
- lib/cocoapods-core/podfile/target_definition.rb
.from_hash(hash, parent) ⇒ TargetDefinition
Configures a new target definition from the given hash.
846 847 848 849 850 851 852 853 854 |
# File 'lib/cocoapods-core/podfile/target_definition.rb', line 846 def self.from_hash(hash, parent) internal_hash = hash.dup children_hashes = internal_hash.delete('children') || [] definition = TargetDefinition.new(nil, parent, internal_hash) children_hashes.each do |child_hash| TargetDefinition.from_hash(child_hash, definition) end definition end |