Sha256: 6a3ed2dcb2d9ac314338515292cce315781b9eeb92905c03d1f2d62a700357a5
Contents?: true
Size: 425 Bytes
Versions: 1
Compression:
Stored size: 425 Bytes
Contents
require 'json' module IOStreams class Tabular module Parser class Hash < Base def parse(row) raise(Tabular::Errors::TypeMismatch, "Format is :hash. Invalid input: #{row.class.name}") unless row.is_a?(::Hash) row end def render(row, header) header.to_hash(row) end def requires_header? false end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iostreams-0.15.0 | lib/io_streams/tabular/parser/hash.rb |