Class: Pod::XCConfig::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-xcconfig-hooks/config.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_configObject

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

.instanceObject



10
11
12
# File 'lib/cocoapods-xcconfig-hooks/config.rb', line 10

def self.instance
  @instance ||= Config.new
end

Instance Method Details

#aggregate_targets_only?Boolean

Returns:

  • (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_dirObject



14
15
16
# File 'lib/cocoapods-xcconfig-hooks/config.rb', line 14

def hook_dir
  @hook_dir ||= (dsl_config[:hook_dir] || Pathname(".xcconfigs"))
end