Sha256: 0a210fc05811f6b6d2e5afb9bfb59a6de4c9d0add03cacf8c629b227faba690a
Contents?: true
Size: 716 Bytes
Versions: 9
Compression:
Stored size: 716 Bytes
Contents
# frozen_string_literal: true require "hanami/view" module Hanami # @api private module Extensions # Integrated behavior for `Hanami::View` classes within Hanami apps. # # This is NOT RELEASED as of 2.0.0. # # @see Hanami::View # # @api private module View # @api private def self.included(view_class) super view_class.extend(Hanami::SliceConfigurable) view_class.extend(ClassMethods) end # @api private module ClassMethods # @api private def configure_for_slice(slice) extend SliceConfiguredView.new(slice) end end end end end Hanami::View.include(Hanami::Extensions::View)
Version data entries
9 entries across 9 versions & 1 rubygems