Sha256: 502e473b064387e1a5613a55df85cd166019bfd29fb9b6f3c309bafd2fcdee0b
Contents?: true
Size: 807 Bytes
Versions: 17
Compression:
Stored size: 807 Bytes
Contents
# frozen_string_literal: true module Nanoc::RuleDSL class RuleContext < Nanoc::Int::Context include Nanoc::Int::ContractsSupport contract C::KeywordArgs[ rep: Nanoc::Int::ItemRep, site: Nanoc::Int::Site, view_context: Nanoc::ViewContextForPreCompilation, ] => C::Any def initialize(rep:, site:, view_context:) super({ item: Nanoc::BasicItemView.new(rep.item, view_context), rep: Nanoc::BasicItemRepView.new(rep, view_context), item_rep: Nanoc::BasicItemRepView.new(rep, view_context), items: Nanoc::ItemCollectionWithoutRepsView.new(site.items, view_context), layouts: Nanoc::LayoutCollectionView.new(site.layouts, view_context), config: Nanoc::ConfigView.new(site.config, view_context), }) end end end
Version data entries
17 entries across 17 versions & 1 rubygems