Class: CocoaPodsAcknowledgements::AddOns::PodspecAccumulator
- Inherits:
-
Object
- Object
- CocoaPodsAcknowledgements::AddOns::PodspecAccumulator
- Defined in:
- lib/cocoapods_acknowledgements/addons/podspec_accumulator.rb
Instance Method Summary collapse
-
#acknowledgements ⇒ Array<Acknowledgement>
The array of Acknowledgement objects.
-
#initialize(search_path = Pathname("").expand_path) ⇒ PodspecAccumulator
constructor
A new instance of PodspecAccumulator.
Constructor Details
#initialize(search_path = Pathname("").expand_path) ⇒ PodspecAccumulator
Returns a new instance of PodspecAccumulator.
10 11 12 |
# File 'lib/cocoapods_acknowledgements/addons/podspec_accumulator.rb', line 10 def initialize(search_path = Pathname("").) @files = Dir[search_path + "**/*.podspec"] end |
Instance Method Details
#acknowledgements ⇒ Array<Acknowledgement>
Returns the array of Acknowledgement objects.
16 17 18 |
# File 'lib/cocoapods_acknowledgements/addons/podspec_accumulator.rb', line 16 def acknowledgements @files.map { |file| Acknowledgement.new(file) } end |