lib/cocoapods/generator/header.rb
# Generates the contents of the header according to the platform.
#
# @note   If the platform is iOS an import call to `UIKit/UIKit.h` is
#         added to the top of the prefix header. For OS X `Cocoa/Cocoa.h`
#         is imported.
#
# @return [String]
#
Generates the contents of the header according to the platform.
Generates the contents of the header according to the platform .
def generate
        result = ""
        result << generate_platform_import_header
        result << "\n"
        imports.each do |import|
          result << %|#import "#{import}"\n|
        end
        result
      end
def generate result = "" result << generate_platform_import_header result << "\n" imports . each do | import | result << %|#import "#{import}"\n| end result end
Generates the contents of the header according to the platform.
Generates the contents of the header according to the platform .
None
String
note
If the platform is iOS an import call to `UIKit/UIKit.h` is added to the top of the prefix header. For OS X `Cocoa/Cocoa.h` is imported.
If the platform is iOS an import call to ` UIKit / UIKit . h ` is added to the top of the prefix header . For OS X ` Cocoa / Cocoa . h ` is imported .