Sha256: da9b5c64a9e92b86f2e3473b0aeb613bcfc1849d090d328e5c31ee9295c11690
Contents?: true
Size: 291 Bytes
Versions: 4
Compression:
Stored size: 291 Bytes
Contents
module Envault class Formatter def self.escape_yaml(hash) lines = [] hash.map do |k, v| lines << %Q{#{k}: #{v.inspect}} end lines.join("\n") end def self.write_escape_yaml(path, hash) File.write(path, escape_yaml(hash)) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
envault-0.2.0 | lib/envault/formatter.rb |
envault-0.1.2 | lib/envault/formatter.rb |
envault-0.1.1 | lib/envault/formatter.rb |
envault-0.1.0 | lib/envault/formatter.rb |