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
18 19 20 21 22 23 |
# File 'lib/cocoapods-xcconfig-hooks/config.rb', line 18 def aggregate_targets_only? value = dsl_config[:aggregate_targets_only] return value unless value.nil? true end |
#hook_dir ⇒ Object
14 15 16 |
# File 'lib/cocoapods-xcconfig-hooks/config.rb', line 14 def hook_dir @hook_dir ||= (dsl_config[:hook_dir] || Pathname(".xcconfigs")) end |