Class: Nanoc::Core::ViewContextForPreCompilation
- Inherits:
-
Object
- Object
- Nanoc::Core::ViewContextForPreCompilation
- Includes:
- ContractsSupport
- Defined in:
- lib/nanoc/core/view_context_for_pre_compilation.rb
Instance Attribute Summary collapse
-
#dependency_tracker ⇒ Object
readonly
Returns the value of attribute dependency_tracker.
-
#items ⇒ Object
readonly
Returns the value of attribute items.
Instance Method Summary collapse
-
#initialize(items:) ⇒ ViewContextForPreCompilation
constructor
A new instance of ViewContextForPreCompilation.
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_tracker ⇒ Object (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 |
#items ⇒ Object (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 |