Module: Hanami::Extensions::View::Part::ClassMethods Private

Defined in:
lib/hanami/extensions/view/part.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 2.1.0

Instance Method Summary collapse

Instance Method Details

#configure_for_slice(slice) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 2.1.0



23
24
25
26
27
28
29
# File 'lib/hanami/extensions/view/part.rb', line 23

def configure_for_slice(slice)
  extend SliceConfiguredPart.new(slice)

  const_set :PartHelpers, Class.new(PartHelpers) { |klass|
    klass.configure_for_slice(slice)
  }
end