bundle/ruby/2.0.0/gems/xcodeproj-1.0.0/lib/xcodeproj/plist/ffi.rb
def write_to_path(hash, path)
          raise ThreadError, 'Can only write plists from the main thread.' unless Thread.current == Thread.main

          if DevToolsCore.load_xcode_frameworks && path.end_with?('pbxproj')
            ruby_hash_write_xcode(hash, path)
          else
            CoreFoundation.RubyHashPropertyListWrite(hash, path)
            fix_encoding(path)
          end
        end
# Serializes a hash as an XML property list file.
#
# @param  [#to_hash] hash
#         The hash to store.
#
# @param  [#to_s] path
#         The path of the file.
#
Serializes a hash as an XML property list file.
Serializes a hash as an XML property list file .
def write_to_path(hash, path)
          raise ThreadError, 'Can only write plists from the main thread.' unless Thread.current == Thread.main
          if DevToolsCore.load_xcode_frameworks && path.end_with?('pbxproj')
            ruby_hash_write_xcode(hash, path)
          else
            CoreFoundation.RubyHashPropertyListWrite(hash, path)
            fix_encoding(path)
          end
        end
def write_to_path ( hash , path ) raise ThreadError , 'Can only write plists from the main thread.' unless Thread . current == Thread . main if DevToolsCore . load_xcode_frameworks && path . end_with? ( 'pbxproj' ) ruby_hash_write_xcode ( hash , path ) else CoreFoundation . RubyHashPropertyListWrite ( hash , path ) fix_encoding ( path ) end end
Serializes a hash as an XML property list file.
Serializes a hash as an XML property list file .
hash
path
path The path of the file.
path The path of the file .