Sha256: 7197d04f8d0f12d5f311f771447925ff4a4051e5e39869845252cd14ecf42e8c

Contents?: true

Size: 465 Bytes

Versions: 9

Compression:

Stored size: 465 Bytes

Contents

# encoding: utf-8

module Nanoc

  # Represents the site configuration.
  class Configuration < ::Hash

    # Creates a new configuration with the given hash.
    #
    # @param [Hash] hash The actual configuration hash
    def initialize(hash)
      replace(hash)
    end

    # Returns an object that can be used for uniquely identifying objects.
    #
    # @return [Object] An unique reference to this object
    def reference
      :config
    end

  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
nanoc-3.7.4 lib/nanoc/base/source_data/configuration.rb
nanoc-3.7.3 lib/nanoc/base/source_data/configuration.rb
nanoc-3.7.2 lib/nanoc/base/source_data/configuration.rb
nanoc-3.7.1 lib/nanoc/base/source_data/configuration.rb
nanoc-3.7.0 lib/nanoc/base/source_data/configuration.rb
nanoc-3.6.11 lib/nanoc/base/source_data/configuration.rb
nanoc-3.6.10 lib/nanoc/base/source_data/configuration.rb
nanoc-3.6.9 lib/nanoc/base/source_data/configuration.rb
nanoc-3.6.8 lib/nanoc/base/source_data/configuration.rb