Sha256: 92d6c288d7eeaa3204ec4efa53a484c8d3c95ed21c52640eb820603f98364add

Contents?: true

Size: 509 Bytes

Versions: 3

Compression:

Stored size: 509 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::Core::ItemRepRepo,
    ] => C::Any
    def initialize(items:, reps:)
      @items = items
      @reps = reps

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nanoc-4.11.11 lib/nanoc/base/views/view_context_for_shell.rb
nanoc-4.11.10 lib/nanoc/base/views/view_context_for_shell.rb
nanoc-4.11.9 lib/nanoc/base/views/view_context_for_shell.rb