Class: Pod::BridgeSupportGenerator
- Inherits:
-
Object
- Object
- Pod::BridgeSupportGenerator
- Extended by:
- Executable
- Includes:
- Config::Mixin
- Defined in:
- lib/cocoapods/bridge_support_generator.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
Instance Method Summary collapse
-
#initialize(headers) ⇒ BridgeSupportGenerator
constructor
A new instance of BridgeSupportGenerator.
- #save_as(pathname) ⇒ Object
- #search_paths ⇒ Object
Methods included from Executable
Methods included from Config::Mixin
Constructor Details
#initialize(headers) ⇒ BridgeSupportGenerator
Returns a new instance of BridgeSupportGenerator.
10 11 12 |
# File 'lib/cocoapods/bridge_support_generator.rb', line 10 def initialize(headers) @headers = headers end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
8 9 10 |
# File 'lib/cocoapods/bridge_support_generator.rb', line 8 def headers @headers end |
Instance Method Details
#save_as(pathname) ⇒ Object
18 19 20 21 |
# File 'lib/cocoapods/bridge_support_generator.rb', line 18 def save_as(pathname) puts "==> Generating BridgeSupport metadata file at `#{pathname}'" unless config.silent? %{-c "#{search_paths.join(' ')}" -o '#{pathname}' '#{headers.join("' '")}'} end |
#search_paths ⇒ Object
14 15 16 |
# File 'lib/cocoapods/bridge_support_generator.rb', line 14 def search_paths @headers.map { |header| "-I '#{header.dirname}'" }.uniq end |