lib/docparser/output/yaml_output.rb in docparser-0.1.6 vs lib/docparser/output/yaml_output.rb in docparser-0.2.0

- old
+ new

@@ -4,10 +4,10 @@ # YAML documents # @see Output class YAMLOutput < Output # @!visibility private def write_row(row) - raise MissingHeaderException if @header.nil? || @header.length == 0 + fail MissingHeaderException if @header.nil? || @header.length == 0 @doc ||= {} 0.upto(@header.length - 1) do |counter| @doc[@header[counter]] = row.length > counter ? row[counter] : '' end