lib/plist4r/backend/haml.rb in plist4r-0.1.0 vs lib/plist4r/backend/haml.rb in plist4r-0.1.1
- old
+ new
@@ -1,9 +1,9 @@
-require 'plist4r/backend'
+require 'plist4r/backend_base'
-module Plist4r::Backend::HamlXmlWriter
+module Plist4r::Backend::Haml
class << self
def to_xml_haml
@to_xml_haml ||= <<-'EOC'
!!! XML UTF-8
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
@@ -64,10 +64,10 @@
raise "#{self} - cant save file format #{file_format}" unless file_format == :xml
hash = plist.to_hash
filename = plist.filename_path
File.open(filename,'w') do |out|
- out << to_xml plist
+ out << to_xml(plist)
end
end
end
end