Sha256: e57b0731d5e39d868062c802e71c2e3183e403688fb812191a77c623e7dfc839

Contents?: true

Size: 507 Bytes

Versions: 8

Compression:

Stored size: 507 Bytes

Contents

# frozen_string_literal: true

module Nanoc
  # @api private
  class ViewContextForShell
    include Nanoc::Core::ContractsSupport

    attr_reader :items
    attr_reader :reps
    attr_reader :dependency_tracker

    contract C::KeywordArgs[
      items: Nanoc::Core::IdentifiableCollection,
      reps: Nanoc::Int::ItemRepRepo,
    ] => C::Any
    def initialize(items:, reps:)
      @items = items
      @reps = reps

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
nanoc-4.11.8 lib/nanoc/base/views/view_context_for_shell.rb
nanoc-4.11.7 lib/nanoc/base/views/view_context_for_shell.rb
nanoc-4.11.6 lib/nanoc/base/views/view_context_for_shell.rb
nanoc-4.11.5 lib/nanoc/base/views/view_context_for_shell.rb
nanoc-4.11.4 lib/nanoc/base/views/view_context_for_shell.rb
nanoc-4.11.3 lib/nanoc/base/views/view_context_for_shell.rb
nanoc-4.11.2 lib/nanoc/base/views/view_context_for_shell.rb
nanoc-4.11.1 lib/nanoc/base/views/view_context_for_shell.rb