Class: Pod::XCConfig::Config
- Inherits:
-
Object
- Object
- Pod::XCConfig::Config
- Defined in:
- lib/cocoapods-xcconfig-hooks/config.rb
Instance Attribute Summary collapse
-
#dsl_config ⇒ Object
Returns the value of attribute dsl_config.
Class Method Summary collapse
Instance Method Summary collapse
- #aggregate_targets_only? ⇒ Boolean
- #hook_dir ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
6 7 8 |
# File 'lib/cocoapods-xcconfig-hooks/config.rb', line 6 def initialize @dsl_config = {} end |
Instance Attribute Details
#dsl_config ⇒ Object
Returns the value of attribute dsl_config.
4 5 6 |
# File 'lib/cocoapods-xcconfig-hooks/config.rb', line 4 def dsl_config @dsl_config end |
Class Method Details
Instance Method Details
#aggregate_targets_only? ⇒ Boolean
22 23 24 |
# File 'lib/cocoapods-xcconfig-hooks/config.rb', line 22 def aggregate_targets_only? dsl_config[:aggregate_targets_only] end |
#hook_dir ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/cocoapods-xcconfig-hooks/config.rb', line 14 def hook_dir @hook_dir ||= begin dir = Pathname(dsl_config[:hook_dir] || ".xcconfigs") dir.mkpath dir end end |