Sha256: 087229c2815b4b4d7bc9686b1b3a95830d06f040c8ccf694174e38028a0858b2
Contents?: true
Size: 750 Bytes
Versions: 1
Compression:
Stored size: 750 Bytes
Contents
# frozen_string_literal: true module Nanoc class View include Nanoc::Core::ContractsSupport # @api private # TODO: disallow nil contract C::Maybe[C::Or[ Nanoc::Core::ViewContextForCompilation, Nanoc::Core::ViewContextForPreCompilation, Nanoc::Core::ViewContextForShell ]] => C::Any def initialize(context) @context = context end # @api private def _context @context end # @api private def _unwrap raise NotImplementedError end # True if the wrapped object is frozen; false otherwise. # # @return [Boolean] # # @see Object#frozen? def frozen? _unwrap.frozen? end def inspect "<#{self.class}>" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nanoc-4.11.12 | lib/nanoc/base/views/view.rb |