Sha256: accdaf7fba1fd8b3b709d6dc2308925dfc1f328a6706c9d0b8059c91612359c3

Contents?: true

Size: 567 Bytes

Versions: 3

Compression:

Stored size: 567 Bytes

Contents

# frozen_string_literal: true

module Hanami
  module Extensions
    module View
      # @api private
      module Part
        def self.included(part_class)
          super

          part_class.extend(Hanami::SliceConfigurable)
          part_class.include(StandardHelpers)
          part_class.extend(ClassMethods)
        end

        module ClassMethods
          def configure_for_slice(slice)
            extend SliceConfiguredHelpers.new(slice)
          end
        end
      end
    end
  end
end

Hanami::View::Part.include(Hanami::Extensions::View::Part)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hanami-2.1.0.beta2.1 lib/hanami/extensions/view/part.rb
hanami-2.1.0.beta2 lib/hanami/extensions/view/part.rb
hanami-2.1.0.beta1 lib/hanami/extensions/view/part.rb