lib/io_streams/tabular/parser/hash.rb in iostreams-0.15.0 vs lib/io_streams/tabular/parser/hash.rb in iostreams-0.16.0

- old
+ new

@@ -2,10 +2,10 @@ 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) + 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)