Class: SublimeDSL::TextMate::Theme::PListWriter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(theme) ⇒ PListWriter

Returns a new instance of PListWriter.



12
13
14
15
16
# File 'lib/sublime_dsl/textmate/theme/plist_writer.rb', line 12

def initialize(theme)
  @theme = theme
  @root = {}
  convert_theme
end

Instance Attribute Details

#rootObject (readonly)

Returns the value of attribute root.



10
11
12
# File 'lib/sublime_dsl/textmate/theme/plist_writer.rb', line 10

def root
  @root
end

#themeObject (readonly)

Returns the value of attribute theme.



9
10
11
# File 'lib/sublime_dsl/textmate/theme/plist_writer.rb', line 9

def theme
  @theme
end

Instance Method Details

#export(file) ⇒ Object



18
19
20
# File 'lib/sublime_dsl/textmate/theme/plist_writer.rb', line 18

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