Class: Plist4r::Config
- Extended by:
- Mixlib::Config
- Defined in:
- lib/plist4r/config.rb
Class Methods
Methods included from Mixlib::Config
[], []=, config_attr_writer, configure, from_file, has_key?, hash_dup, keys, merge!, method_missing
Overview
The special configuration object, which holds all runtime defaults for individual plist instances. When we create a new Plist object, it will inherit these defaults.
Constant Summary
- CoreFoundationFramework =
"/System/Library/Frameworks/CoreFoundation.framework"
- RubycocoaFramework =
"/System/Library/Frameworks/RubyCocoa.framework"
- DefaultBackendsAny =
["c_f_property_list","haml","libxml4r"]
- DefaultBackendsOsx =
["osx_plist","c_f_property_list","haml","libxml4r"]
Class Method Details
+ (Object) default_backends(sym = nil)
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/plist4r/config.rb', line 37 def self.default_backends sym=nil case sym when :brew ["ruby_cocoa"] else if File.exists? CoreFoundationFramework if File.exists? RubycocoaFramework DefaultBackendsOsx + ["ruby_cocoa"] else DefaultBackendsOsx end else DefaultBackendsAny end end end |