Class: CocoaPodsAcknowledgements::AddOns::PodspecAccumulator

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods_acknowledgements/addons/podspec_accumulator.rb

Instance Method Summary collapse

Constructor Details

#initialize(search_path = Pathname("").expand_path) ⇒ PodspecAccumulator

Returns a new instance of PodspecAccumulator.

Parameters:

  • search_path (Pathname) (defaults to: Pathname("").expand_path)

    the directory to look for podspecs.



10
11
12
# File 'lib/cocoapods_acknowledgements/addons/podspec_accumulator.rb', line 10

def initialize(search_path = Pathname("").expand_path)
  @files = Dir[search_path + "**/*.podspec"]
end

Instance Method Details

#acknowledgementsArray<Acknowledgement>

Returns the array of Acknowledgement objects.

Returns:



16
17
18
# File 'lib/cocoapods_acknowledgements/addons/podspec_accumulator.rb', line 16

def acknowledgements
  @files.map { |file| Acknowledgement.new(file) }
end