Class: Pod::BridgeSupportGenerator

Inherits:
Object
  • Object
show all
Extended by:
Executable
Includes:
Config::Mixin
Defined in:
lib/cocoapods/bridge_support_generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Executable

executable

Methods included from Config::Mixin

#config

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

#headersObject (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_pathsObject



14
15
16
# File 'lib/cocoapods/bridge_support_generator.rb', line 14

def search_paths
  @headers.map { |header| "-I '#{header.dirname}'" }.uniq
end