class Tardef::Connector::YAML
Public Instance Methods
read_file()
click to toggle source
# File lib/tardef/connector/yaml.rb, line 6 def read_file file = open(@filename) yaml = ::YAML.load(file) end
write_file(data)
click to toggle source
# File lib/tardef/connector/yaml.rb, line 11 def write_file(data) yaml = ::YAML.dump(data) ::File.open(@filename, "w") { |f| f.write(yaml) } end