Sha256: 7d41aea3712b88f5eb87a73b9ced602e334bc8e6ebc932e91c7e29537a09af3b

Contents?: true

Size: 471 Bytes

Versions: 8

Compression:

Stored size: 471 Bytes

Contents

# encoding: utf-8

module Nanoc3

  # 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)
      self.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

8 entries across 8 versions & 1 rubygems

Version Path
nanoc3-3.2.4 lib/nanoc3/base/source_data/configuration.rb
nanoc3-3.2.3 lib/nanoc3/base/source_data/configuration.rb
nanoc3-3.2.2 lib/nanoc3/base/source_data/configuration.rb
nanoc3-3.2.1 lib/nanoc3/base/source_data/configuration.rb
nanoc3-3.2.0 lib/nanoc3/base/source_data/configuration.rb
nanoc3-3.2.0b3 lib/nanoc3/base/source_data/configuration.rb
nanoc3-3.2.0b2 lib/nanoc3/base/source_data/configuration.rb
nanoc3-3.2.0b1 lib/nanoc3/base/source_data/configuration.rb