Sha256: 9fb4291c87b20bb3522fbf3548809c3e1f6f12cc6c559115cc29201415a48282

Contents?: true

Size: 470 Bytes

Versions: 23

Compression:

Stored size: 470 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)
      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

23 entries across 23 versions & 1 rubygems

Version Path
nanoc-3.6.7 lib/nanoc/base/source_data/configuration.rb
nanoc-3.6.6 lib/nanoc/base/source_data/configuration.rb
nanoc-3.6.5 lib/nanoc/base/source_data/configuration.rb
nanoc-3.6.4 lib/nanoc/base/source_data/configuration.rb
nanoc-3.6.3 lib/nanoc/base/source_data/configuration.rb
nanoc-3.6.2 lib/nanoc/base/source_data/configuration.rb
nanoc-3.6.1 lib/nanoc/base/source_data/configuration.rb
nanoc-3.6.0 lib/nanoc/base/source_data/configuration.rb
nanoc-3.5.0 lib/nanoc/base/source_data/configuration.rb
nanoc-3.5.0b2 lib/nanoc/base/source_data/configuration.rb
nanoc-3.5.0b1 lib/nanoc/base/source_data/configuration.rb
nanoc-3.4.3 lib/nanoc/base/source_data/configuration.rb
nanoc-3.4.2 lib/nanoc/base/source_data/configuration.rb
nanoc-3.4.1 lib/nanoc/base/source_data/configuration.rb
nanoc-3.4.0 lib/nanoc/base/source_data/configuration.rb
nanoc-3.3.7 lib/nanoc/base/source_data/configuration.rb
nanoc-3.3.6 lib/nanoc/base/source_data/configuration.rb
nanoc-3.3.5 lib/nanoc/base/source_data/configuration.rb
nanoc-3.3.4 lib/nanoc/base/source_data/configuration.rb
nanoc-3.3.3 lib/nanoc/base/source_data/configuration.rb