Method: Pod::Specification::Linter#initialize
- Defined in:
- lib/cocoapods-core/specification/linter.rb
#initialize(spec_or_path) ⇒ Linter
Returns a new instance of Linter.
26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/cocoapods-core/specification/linter.rb', line 26 def initialize(spec_or_path) if spec_or_path.is_a?(Specification) @spec = spec_or_path @file = @spec.defined_in_file else @file = Pathname.new(spec_or_path) begin @spec = Specification.from_file(@file) rescue => e @spec = nil = e. end end end |