Method: Pod::Specification#recursive_subspecs

Defined in:
lib/cocoapods-core/specification.rb

#recursive_subspecsArray<Specification>

Returns the recursive list of all the subspecs of a specification.

Returns:

  • (Array<Specification>)

    the recursive list of all the subspecs of a specification.



305
306
307
308
309
310
311
312
# File 'lib/cocoapods-core/specification.rb', line 305

def recursive_subspecs
  mapper = lambda do |spec|
    spec.subspecs.map do |subspec|
      [subspec, *mapper.call(subspec)]
    end.flatten
  end
  mapper.call(self)
end