>Pod

File representation

_eval_podspec

_eval_podspecclass method

Signature

_eval_podspec(string, path) #=> Object 

Parameters

String string

The string containing the Ruby description of the Object to evaluate.

Pathname path

The path where the object to evaluate is stored.

Returns

Object

It can return any object but, is expected to be called on podspec files that should return a #{Specification}.

Source

606 def self._eval_podspec(string, path)
607   begin
608     eval(string, nil, path.to_s)
609   rescue Exception => e
610     raise DSLError.new("Invalid `#{path.basename}` file: #{e.message}",
611                        path, e.backtrace)
612   end
613 end

Source Files

lib/cocoapods-core/specification.rb:606

spec/specification_spec.rb