lib/prezzo/explainable.rb in prezzo-0.2.1 vs lib/prezzo/explainable.rb in prezzo-0.2.2

- old
+ new

@@ -6,15 +6,13 @@ end end module ClassMethods def explain_with(*options) - @@_methods = options - define_method(:explain) do explanation = {} - @@_methods.each do |method| + options.each do |method| explanation[method] = send(method) end explanation end