lib/cocoapods/generator/target_header.rb
# Generates and saves the file.
#
# @param  [Pathname] pathname
#         The path where to save the generated file.
#
# @return [void]
#
Generates and saves the file.
Generates and saves the file .
def save_as(pathname)
        pathname.open('w') do |source|
          source.puts "// WARNING: This feature of CocoaPods is present for discussion purposes and might be discontinued or changed in future"
          source.puts "#define __COCOA_PODS"
          source.puts
          specs.each do |specs|
            source.puts "#define __POD_#{specs.name.gsub(/[^\w]/,'_')}"
          end
        end
      end
def save_as ( pathname ) pathname . open ( 'w' ) do | source | source . puts "// WARNING: This feature of CocoaPods is present for discussion purposes and might be discontinued or changed in future" source . puts "#define __COCOA_PODS" source . puts specs . each do | specs | source . puts "#define __POD_#{specs.name.gsub(/[^\w]/,'_')}" end end end
Generates and saves the file.
Generates and saves the file .
None
void
pathname
pathname The path where to save the generated file.
pathname The path where to save the generated file .