Sha256: ca67c57aa2bde72d69288c7b1b5f6eef5536768f6823fda2d34ed30d39c1a277

Contents?: true

Size: 461 Bytes

Versions: 2

Compression:

Stored size: 461 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

2 entries across 2 versions & 1 rubygems

Version Path
nanoc-3.8.0 lib/nanoc/base/source_data/configuration.rb
nanoc-3.7.5 lib/nanoc/base/source_data/configuration.rb