Sha256: 81e3a3339eba8bdfd223674dfdad2577698ff316b4fd3a142335f8d56aabc17f

Contents?: true

Size: 468 Bytes

Versions: 2

Compression:

Stored size: 468 Bytes

Contents

module Nanoc::Int
  # Represents the site configuration.
  #
  # @api private
  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-4.0.0b4 lib/nanoc/base/source_data/configuration.rb
nanoc-4.0.0b3 lib/nanoc/base/source_data/configuration.rb