lib/nanoc/base/entities/site.rb in nanoc-4.8.5 vs lib/nanoc/base/entities/site.rb in nanoc-4.8.6
- old
+ new
@@ -6,10 +6,10 @@
include Nanoc::Int::ContractsSupport
attr_reader :code_snippets
attr_reader :config
attr_accessor :data_source
- attr_accessor :compiler
+ attr_writer :compiler
contract C::KeywordArgs[config: Nanoc::Int::Configuration, code_snippets: C::IterOf[Nanoc::Int::CodeSnippet], data_source: C::Maybe[C::Named['Nanoc::DataSource']]] => C::Any
def initialize(config:, code_snippets:, data_source:)
@config = config
@code_snippets = code_snippets