Module: Hanami::Extensions::View

Defined in:
lib/hanami/extensions/view.rb,
lib/hanami/extensions/view/part.rb,
lib/hanami/extensions/view/scope.rb,
lib/hanami/extensions/view/context.rb,
lib/hanami/extensions/view/standard_helpers.rb,
lib/hanami/extensions/view/slice_configured_part.rb,
lib/hanami/extensions/view/slice_configured_view.rb,
lib/hanami/extensions/view/slice_configured_context.rb,
lib/hanami/extensions/view/slice_configured_helpers.rb

Overview

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

See Also:

  • View

Since:

  • 2.1.0

Defined Under Namespace

Modules: ClassMethods, Context, Part, Scope, StandardHelpers Classes: PartHelpers, SliceConfiguredContext, SliceConfiguredHelpers, SliceConfiguredPart, 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:

  • 2.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