# frozen_string_literal: true module Vedeu module Renderers # Provides shared functionality to Vedeu::Renderer classes. # module Options # :nocov: # @!attribute [w] options # @return [Hash void>] attr_writer :options # Returns a boolean indicating whether the content should be # compressed if compression is available. # # @return [Boolean] def compress? options[:compression] || Vedeu::Configuration.compression? || false end private # Combines the options provided at instantiation with the # default values. # # @return [Hash void>] def options defaults.merge!(@options) end # The default values for a new instance of this class. # # @return [Hash void>] def defaults {} end # :nocov: end # Options end # Renderers end # Vedeu