Sha256: 2f80f1e340897d0c07129e9906bed4fe22a6c076deb60e4924c7fb654470da0d

Contents?: true

Size: 580 Bytes

Versions: 5

Compression:

Stored size: 580 Bytes

Contents

module Vedeu

  module Renderers

    # Provides shared functionality to Vedeu::Renderer classes.
    #
    # :nocov:
    module RendererOptions

      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

    end # RendererOptions
    # :nocov:

  end # Renderers

end # Vedeu

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vedeu-0.6.15 lib/vedeu/output/renderers/renderer_options.rb
vedeu-0.6.14 lib/vedeu/output/renderers/renderer_options.rb
vedeu-0.6.13 lib/vedeu/output/renderers/renderer_options.rb
vedeu-0.6.12 lib/vedeu/output/renderers/renderer_options.rb
vedeu-0.6.11 lib/vedeu/output/renderers/renderer_options.rb