Sha256: 68500e1115349995b599f7235dd7deb130a9c42e64f5d8545a641d3844bfea11

Contents?: true

Size: 529 Bytes

Versions: 1

Compression:

Stored size: 529 Bytes

Contents

# frozen_string_literal: true

require "hanami/view"
require_relative "../slice_configurable"
require_relative "view/slice_configured_view"

module Hanami
  class Application
    # Superclass for views intended for use within an Hanami application.
    #
    # @see Hanami::View
    #
    # @api public
    # @since 2.0.0
    class View < Hanami::View
      extend Hanami::SliceConfigurable

      # @api private
      def self.configure_for_slice(slice)
        extend SliceConfiguredView.new(slice)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hanami-2.0.0.alpha8 lib/hanami/application/view.rb