Sha256: 823f44a2ceb5f4d0825e958fd070e21d9c4b287a1bf80bbb10033782e652c288

Contents?: true

Size: 401 Bytes

Versions: 5

Compression:

Stored size: 401 Bytes

Contents

module Nanoc
  class View
    # @api private
    def initialize(context)
      @context = context
    end

    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

5 entries across 5 versions & 1 rubygems

Version Path
nanoc-4.1.6 lib/nanoc/base/views/view.rb
nanoc-4.1.5 lib/nanoc/base/views/view.rb
nanoc-4.1.4 lib/nanoc/base/views/view.rb
nanoc-4.1.3 lib/nanoc/base/views/view.rb
nanoc-4.1.2 lib/nanoc/base/views/view.rb