Class: Nanoc::Core::ViewContextForPreCompilation

Inherits:
Object
  • Object
show all
Includes:
ContractsSupport
Defined in:
lib/nanoc/core/view_context_for_pre_compilation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ContractsSupport

enabled?, included, setup_once, warn_about_performance

Constructor Details

#initialize(items:) ⇒ ViewContextForPreCompilation

Returns a new instance of ViewContextForPreCompilation.



12
13
14
15
16
# File 'lib/nanoc/core/view_context_for_pre_compilation.rb', line 12

def initialize(items:)
  @items = items

  @dependency_tracker = Nanoc::Core::DependencyTracker::Null.new
end

Instance Attribute Details

#dependency_trackerObject (readonly)

Returns the value of attribute dependency_tracker.



9
10
11
# File 'lib/nanoc/core/view_context_for_pre_compilation.rb', line 9

def dependency_tracker
  @dependency_tracker
end

#itemsObject (readonly)

Returns the value of attribute items.



8
9
10
# File 'lib/nanoc/core/view_context_for_pre_compilation.rb', line 8

def items
  @items
end