Sha256: abf3c419335f19e898d1fc15a85e1d1d9646f838b1c291f4e03ff44f3edbbc47

Contents?: true

Size: 574 Bytes

Versions: 4

Compression:

Stored size: 574 Bytes

Contents

# frozen_string_literal: true

module Hanami
  module Extensions
    module View
      # @api private
      module Scope
        def self.included(scope_class)
          super

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

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

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