Class: Nanoc::ViewContext Private

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#compilerObject (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_trackerObject (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

#itemsObject (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

#repsObject (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