Sha256: a256d2a7cbaca26f5de8289876d287a27e075e9813e0b013ef5165111734fec0

Contents?: true

Size: 469 Bytes

Versions: 39

Compression:

Stored size: 469 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

    def inspect
      "<#{self.class}>"
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
nanoc-4.7.9 lib/nanoc/base/views/view.rb
nanoc-4.7.8 lib/nanoc/base/views/view.rb
nanoc-4.7.7 lib/nanoc/base/views/view.rb
nanoc-4.7.6 lib/nanoc/base/views/view.rb
nanoc-4.7.5 lib/nanoc/base/views/view.rb
nanoc-4.7.4 lib/nanoc/base/views/view.rb
nanoc-4.7.3 lib/nanoc/base/views/view.rb
nanoc-4.7.2 lib/nanoc/base/views/view.rb
nanoc-4.7.1 lib/nanoc/base/views/view.rb
nanoc-4.7.0 lib/nanoc/base/views/view.rb
nanoc-4.6.4 lib/nanoc/base/views/view.rb
nanoc-4.6.3 lib/nanoc/base/views/view.rb
nanoc-4.6.2 lib/nanoc/base/views/view.rb
nanoc-4.6.1 lib/nanoc/base/views/view.rb
nanoc-4.6.0 lib/nanoc/base/views/view.rb
nanoc-4.5.4 lib/nanoc/base/views/view.rb
nanoc-4.5.3 lib/nanoc/base/views/view.rb
nanoc-4.5.2 lib/nanoc/base/views/view.rb
nanoc-4.5.1 lib/nanoc/base/views/view.rb
nanoc-4.5.0 lib/nanoc/base/views/view.rb