Sha256: e068889da8f3489c8996da8b76c183b227373c68f5e97d83fc0c6e7178eb7a36
Contents?: true
Size: 817 Bytes
Versions: 1
Compression:
Stored size: 817 Bytes
Contents
# frozen_string_literal: true module Nanoc::RuleDSL class RuleContext < Nanoc::Core::Context include Nanoc::Core::ContractsSupport contract C::KeywordArgs[ rep: Nanoc::Core::ItemRep, site: Nanoc::Core::Site, view_context: Nanoc::Core::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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nanoc-4.11.12 | lib/nanoc/rule_dsl/rule_context.rb |