Class: SublimeDSL::TextMate::Preference::PListWriter

Inherits:
Object
  • Object
show all
Defined in:
lib/sublime_dsl/textmate/preference.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(preference) ⇒ PListWriter

Returns a new instance of PListWriter.



249
250
251
252
253
# File 'lib/sublime_dsl/textmate/preference.rb', line 249

def initialize(preference)
  @preference = preference
  @root = {}
  convert
end

Instance Attribute Details

#preferenceObject (readonly)

Returns the value of attribute preference.



246
247
248
# File 'lib/sublime_dsl/textmate/preference.rb', line 246

def preference
  @preference
end

#rootObject (readonly)

Returns the value of attribute root.



247
248
249
# File 'lib/sublime_dsl/textmate/preference.rb', line 247

def root
  @root
end

Instance Method Details

#export(file) ⇒ Object



255
256
257
# File 'lib/sublime_dsl/textmate/preference.rb', line 255

def export(file)
  PList.export(root, file)
end