Class: Nanoc3::Configuration
- Defined in:
- lib/nanoc3/base/source_data/configuration.rb
Overview
Represents the site configuration.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Configuration
constructor
Creates a new configuration with the given hash.
-
#reference ⇒ Object
Returns an object that can be used for uniquely identifying objects.
Methods included from HashExtensions
#checksum, #freeze_recursively, #stringify_keys, #symbolize_keys
Constructor Details
#initialize(hash) ⇒ Configuration
Creates a new configuration with the given hash.
11 12 13 |
# File 'lib/nanoc3/base/source_data/configuration.rb', line 11 def initialize(hash) self.replace(hash) end |
Instance Method Details
#reference ⇒ Object
Returns an object that can be used for uniquely identifying objects.
18 19 20 |
# File 'lib/nanoc3/base/source_data/configuration.rb', line 18 def reference :config end |