Class: Nanoc::ViewContext Private
- Inherits:
-
Object
- Object
- Nanoc::ViewContext
- Defined in:
- lib/nanoc/base/views/view_context.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #compiler ⇒ Object readonly private
- #dependency_tracker ⇒ Object readonly private
- #items ⇒ Object readonly private
- #reps ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(reps:, items:, dependency_tracker:, compiler:) ⇒ ViewContext
constructor
private
A new instance of ViewContext.
Constructor Details
#initialize(reps:, items:, dependency_tracker:, compiler:) ⇒ ViewContext
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ViewContext.
9 10 11 12 13 14 |
# File 'lib/nanoc/base/views/view_context.rb', line 9 def initialize(reps:, items:, dependency_tracker:, compiler:) @reps = reps @items = items @dependency_tracker = dependency_tracker @compiler = compiler end |
Instance Attribute Details
#compiler ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 |
# File 'lib/nanoc/base/views/view_context.rb', line 7 def compiler @compiler end |
#dependency_tracker ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
6 7 8 |
# File 'lib/nanoc/base/views/view_context.rb', line 6 def dependency_tracker @dependency_tracker end |
#items ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5 6 7 |
# File 'lib/nanoc/base/views/view_context.rb', line 5 def items @items end |
#reps ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
4 5 6 |
# File 'lib/nanoc/base/views/view_context.rb', line 4 def reps @reps end |