Module: Hanami::Extensions::View Private

Defined in:
lib/hanami/extensions/view.rb,
lib/hanami/extensions/view/context.rb,
lib/hanami/extensions/view/slice_configured_view.rb,
lib/hanami/extensions/view/slice_configured_context.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.

Integrated behavior for ‘Hanami::View` classes within Hanami apps.

This is NOT RELEASED as of 2.0.0.

See Also:

  • View

Since:

  • 0.1.0

Defined Under Namespace

Modules: ClassMethods, Context Classes: SliceConfiguredContext, SliceConfiguredView

Class Method Summary collapse

Class Method Details

.included(view_class) ⇒ 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:

  • 0.1.0



17
18
19
20
21
22
# File 'lib/hanami/extensions/view.rb', line 17

def self.included(view_class)
  super

  view_class.extend(Hanami::SliceConfigurable)
  view_class.extend(ClassMethods)
end