Class: RubyCF::PList

Inherits:
Object show all
Defined in:
lib/rubycf_extensions.rb

Class Method Summary collapse

Class Method Details

.parse_file(file) ⇒ Object

Parse a plist from a file path or handle



31
32
33
# File 'lib/rubycf_extensions.rb', line 31

def self.parse_file file
  self.parse(file.is_a?(File) ? file.read : File.read(file))
end