module Temple::Mixins::DefaultOptions
def default_options
def default_options @default_options ||= OptionHash.new(superclass.respond_to?(:default_options) ? superclass.default_options : nil) do |hash, key, deprecated| unless @option_validator_disabled if deprecated warn "Option #{key.inspect} is deprecated by #{self}" else # TODO: This will raise an exception in the future! # raise ArgumentError, "Option #{key.inspect} is not supported by #{self}" warn "Option #{key.inspect} is not supported by #{self}" end end end end