Class: Nanoc::Core::ViewContextForShell

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ContractsSupport

enabled?, included, setup_once, warn_about_performance

Constructor Details

#initialize(items:, reps:) ⇒ ViewContextForShell

Returns a new instance of ViewContextForShell.



16
17
18
19
20
21
# File 'lib/nanoc/core/view_context_for_shell.rb', line 16

def initialize(items:, reps:)
  @items = items
  @reps = reps

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

Instance Attribute Details

#dependency_trackerObject (readonly)

Returns the value of attribute dependency_tracker.



10
11
12
# File 'lib/nanoc/core/view_context_for_shell.rb', line 10

def dependency_tracker
  @dependency_tracker
end

#itemsObject (readonly)

Returns the value of attribute items.



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

def items
  @items
end

#repsObject (readonly)

Returns the value of attribute reps.



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

def reps
  @reps
end