Class: Pod::XCConfig::Hook
- Inherits:
-
Object
- Object
- Pod::XCConfig::Hook
- Defined in:
- lib/cocoapods-xcconfig-hooks/main.rb
Instance Method Summary collapse
- #config ⇒ Object
-
#initialize(context) ⇒ Hook
constructor
A new instance of Hook.
- #run ⇒ Object
- #sandbox ⇒ Object
Constructor Details
#initialize(context) ⇒ Hook
Returns a new instance of Hook.
7 8 9 |
# File 'lib/cocoapods-xcconfig-hooks/main.rb', line 7 def initialize(context) @context = context end |
Instance Method Details
#config ⇒ Object
15 16 17 |
# File 'lib/cocoapods-xcconfig-hooks/main.rb', line 15 def config Config.instance end |
#run ⇒ Object
19 20 21 22 23 |
# File 'lib/cocoapods-xcconfig-hooks/main.rb', line 19 def run sandbox.target_support_files_root.glob("*/*.xcconfig") do |path| prepend_includes(path) end end |
#sandbox ⇒ Object
11 12 13 |
# File 'lib/cocoapods-xcconfig-hooks/main.rb', line 11 def sandbox @context.sandbox end |