module Roda::RodaPlugins::ErrorEmail::ClassMethods

def inherited(subclass)

the superclass.
Dup the error email opts in the subclass so changes to the subclass do not affect
def inherited(subclass)
  super
  subclass.opts[:error_email][:headers] = subclass.opts[:error_email][:headers].dup
end