# File lib/map_reduce.rb, line 98 def raise_if_invalid! if not valid_type? raise MapReduceError, "invalid type, please make sure you provide one of the following classes or sub-classes thereof: ActiveRecord::Base, File, or Array" end if not valid_input? raise MapReduceError, "invalid input, please make sure you provide one of the following: #{Array(@@types[type]).join(", ")}" end end