class CocoaPodsAcknowledgements::AddOns::PodspecAccumulator
Public Class Methods
new(search_path = Pathname("").expand_path)
click to toggle source
@param search_path [Pathname] the directory to look for podspecs.
# File lib/cocoapods_acknowledgements/addons/podspec_accumulator.rb, line 10 def initialize(search_path = Pathname("").expand_path) @files = Dir[search_path + "**/*.podspec"] end
Public Instance Methods
acknowledgements()
click to toggle source
@return [Array<Acknowledgement>] the array of Acknowledgement
objects.
# File lib/cocoapods_acknowledgements/addons/podspec_accumulator.rb, line 16 def acknowledgements @files.map { |file| Acknowledgement.new(file) } end