Sha256: ab7dd6e084e734977db2234a6616847af51bc34acf3acc1198600fb52c4ade36
Contents?: true
Size: 427 Bytes
Versions: 13
Compression:
Stored size: 427 Bytes
Contents
require 'json' module IOStreams class Tabular module Parser class Hash < Base def parse(row) raise(IOStreams::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
13 entries across 13 versions & 1 rubygems