Class: SublimeDSL::TextMate::Preference::PListWriter
- Inherits:
-
Object
- Object
- SublimeDSL::TextMate::Preference::PListWriter
- Defined in:
- lib/sublime_dsl/textmate/preference.rb
Instance Attribute Summary collapse
-
#preference ⇒ Object
readonly
Returns the value of attribute preference.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
- #export(file) ⇒ Object
-
#initialize(preference) ⇒ PListWriter
constructor
A new instance of PListWriter.
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
#preference ⇒ Object (readonly)
Returns the value of attribute preference.
246 247 248 |
# File 'lib/sublime_dsl/textmate/preference.rb', line 246 def preference @preference end |
#root ⇒ Object (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 |