Sha256: 5b08fbcb405ee902a4b7712b5e2ead7edbcbfa3f3e9dcb52674dcc145936b811

Contents?: true

Size: 517 Bytes

Versions: 1

Compression:

Stored size: 517 Bytes

Contents

module Vedeu

  # Provides shared functionality to Vedeu::Renderer classes.
  #
  # @api private
  module RendererOptions

    # :nocov:

    private

    # Combines the options provided at instantiation with the default values.
    #
    # @return [Hash<Symbol => void>]
    def options
      defaults.merge!(@options)
    end

    # The default values for a new instance of this class.
    #
    # @return [Hash<Symbol => void>]
    def defaults
      {}
    end

    # :nocov

  end # RendererOptions

end # Vedeu

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vedeu-0.4.56 lib/vedeu/output/renderers/renderer_options.rb