Sha256: b5cb2911e49cecd510c1bd58ef5c5cc72cdbd5b9c20a16b172423823645bd161

Contents?: true

Size: 420 Bytes

Versions: 4

Compression:

Stored size: 420 Bytes

Contents

module Nanoc
  class View
    # @api private
    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
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nanoc-4.2.2 lib/nanoc/base/views/view.rb
nanoc-4.2.1 lib/nanoc/base/views/view.rb
nanoc-4.2.0 lib/nanoc/base/views/view.rb
nanoc-4.2.0b1 lib/nanoc/base/views/view.rb