Module: CocoapodsPodfileLocal::DSL

Included in:
Pod::Podfile
Defined in:
lib/cocoapods_podfile_local/dsl.rb

Overview

声明式 DSL:‘edit ’PodName’, …‘ 与 Podfile 里 `pod` 的关键字参数风格一致。

Instance Method Summary collapse

Instance Method Details

#edit(pod_name, options = {}) ⇒ Object

将某个 pod 的覆盖选项登记到 OverrideManager,后续在解析主 Podfile 的 ‘pod` 时合并生效。



5
6
7
# File 'lib/cocoapods_podfile_local/dsl.rb', line 5

def edit(pod_name, options = {})
  CocoapodsPodfileLocal::OverrideManager.instance.register(pod_name, options)
end