Class: PlistHelper
- Inherits:
-
Object
- Object
- PlistHelper
- Defined in:
- lib/plist_helper.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #add_entry(key, value) ⇒ Object
-
#initialize(path) ⇒ PlistHelper
constructor
A new instance of PlistHelper.
Constructor Details
#initialize(path) ⇒ PlistHelper
Returns a new instance of PlistHelper.
6 7 8 |
# File 'lib/plist_helper.rb', line 6 def initialize(path) @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
4 5 6 |
# File 'lib/plist_helper.rb', line 4 def path @path end |
Instance Method Details
#add_entry(key, value) ⇒ Object
10 11 12 13 14 |
# File 'lib/plist_helper.rb', line 10 def add_entry(key, value) plist_as_dictionary[key] = value puts "applying to plist: #{path} #{key}" save end |