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