class Tardef::Connector::XML

Public Instance Methods

read() click to toggle source
# File lib/tardef/connector/xml.rb, line 6
def read
  raise "Connector is write-only"
end
read_file() click to toggle source
# File lib/tardef/connector/xml.rb, line 10
def read_file
  file = open(@filename)
  XmlSimple.xml_in(file)
end
write_file(data) click to toggle source
# File lib/tardef/connector/xml.rb, line 15
def write_file(data)
  xml = XmlSimple.xml_out(data)
  ::File.open(@filename, "w") { |f| f.write(xml) }
end