lib/remi/data_subjects/none.rb in remi-0.3.2 vs lib/remi/data_subjects/none.rb in remi-0.3.3

- old
+ new

@@ -6,13 +6,13 @@ nil end end - # The None Parser just returns what it is given. + # The None Parser just returns an empty dataframe if it's not given any data class Parser::None < Parser - def parse(data) - data + def parse(data=nil) + data || Remi::DataFrame::Daru.new([], order: fields.keys) end end # The None Encoder just returns what it is given. class Encoder::None < Encoder