Sha256: da1c5c9759036f9e1b0495a92bdf1590f2e62ea3205730fea264442f2e8aaf70
Contents?: true
Size: 399 Bytes
Versions: 1
Compression:
Stored size: 399 Bytes
Contents
require 'yaml' module DocParser # The YAMLOutput class generates a YAML file containing all rows as seperate # YAML documents # @see Output class YAMLOutput < Output # @!visibility private def write_row(row) @doc ||= {} 0.upto(@header.length - 1) do |counter| @doc[@header[counter]] = row[counter] rescue '' end YAML.dump @doc, @file end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
docparser-0.0.1 | lib/docparser/output/yaml_output.rb |