Method: Xcodeproj::Config#to_s
- Defined in:
- lib/xcodeproj/config.rb
#to_s(prefix = nil) ⇒ String
Sorts the internal data by setting name and serializes it in the xcconfig format.
91 92 93 94 95 |
# File 'lib/xcodeproj/config.rb', line 91 def to_s(prefix = nil) include_lines = includes.map { |path| "#include \"#{normalized_xcconfig_path(path)}\"" } settings = to_hash(prefix).sort_by(&:first).map { |k, v| "#{k} = #{v}".strip } (include_lines + settings).join("\n") << "\n" end |