Class: Nanoc::Configuration
- Inherits:
-
Hash
- Object
- Hash
- Nanoc::Configuration
- Defined in:
- lib/nanoc/base/source_data/configuration.rb
Overview
Represents the site configuration.
Instance Method Summary (collapse)
-
- (Configuration) initialize(hash)
constructor
Creates a new configuration with the given hash.
-
- (Object) reference
Returns an object that can be used for uniquely identifying objects.
Methods included from HashExtensions
#checksum, #freeze_recursively, #stringify_keys, #stringify_keys_recursively, #symbolize_keys, #symbolize_keys_recursively
Constructor Details
- (Configuration) initialize(hash)
Creates a new configuration with the given hash.
9 10 11 |
# File 'lib/nanoc/base/source_data/configuration.rb', line 9 def initialize(hash) replace(hash) end |
Instance Method Details
- (Object) reference
Returns an object that can be used for uniquely identifying objects.
16 17 18 |
# File 'lib/nanoc/base/source_data/configuration.rb', line 16 def reference :config end |