lib/prezzo/explainable.rb in prezzo-0.3.0 vs lib/prezzo/explainable.rb in prezzo-0.3.1

- old
+ new

@@ -7,16 +7,12 @@ end module ClassMethods def explain_with(*options) define_method(:explain) do - explanation = {} - - options.each do |method| + options.each_with_object({}) do |method, explanation| explanation[method] = send(method) end - - explanation end end end end end