module Roda::RodaPlugins::DefaultHeaders::ClassMethods

Attributes

default_headers[R]

The default response headers to use for the current class.

Public Instance Methods

inherited(subclass) click to toggle source

Copy the default headers into the subclass when inheriting.

Calls superclass method
# File lib/roda/plugins/default_headers.rb, line 34
def inherited(subclass)
  super
  subclass.instance_variable_set(:@default_headers, default_headers.dup)
end