Class: PlistHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/plist_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathObject (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