lib/nanoc3/base/compilation/compiler_dsl.rb in nanoc3-3.2.0 vs lib/nanoc3/base/compilation/compiler_dsl.rb in nanoc3-3.2.1
- old
+ new
@@ -7,13 +7,16 @@
# Creates a new compiler DSL for the given collection of rules.
#
# @api private
#
- # @param [Nanoc3::RulesCollection] rules_collection The collection of rules
- # to modify when loading this DSL
- def initialize(rules_collection)
+ # @param [Nanoc3::RulesCollection] rules_collection The collection of
+ # rules to modify when loading this DSL
+ #
+ # @param [Hash] config The site configuration
+ def initialize(rules_collection, config)
@rules_collection = rules_collection
+ @config = config
end
# Creates a preprocessor block that will be executed after all data is
# loaded, but before the site is compiled.
#