Module: Hanami::Extensions::View::Context::ClassExtension Private

Defined in:
lib/hanami/extensions/view/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.

Since:

  • 2.1.0

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(context_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



64
65
66
67
68
69
70
# File 'lib/hanami/extensions/view/context.rb', line 64

def self.included(context_class)
  super

  context_class.extend(Hanami::SliceConfigurable)
  context_class.extend(ClassMethods)
  context_class.prepend(InstanceMethods)
end