Class: Hanami::Extensions::View::SliceConfiguredView Private
- Inherits:
-
Module
- Object
- Module
- Hanami::Extensions::View::SliceConfiguredView
- Defined in:
- lib/hanami/extensions/view/slice_configured_view.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Provides slice-specific configuration and behavior for any view class defined within a slice’s module namespace.
Instance Attribute Summary collapse
- #slice ⇒ Object readonly private
Instance Method Summary collapse
- #extended(view_class) ⇒ Object private
-
#initialize(slice) ⇒ SliceConfiguredView
constructor
private
A new instance of SliceConfiguredView.
- #inspect ⇒ Object private
Constructor Details
#initialize(slice) ⇒ SliceConfiguredView
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.
Returns a new instance of SliceConfiguredView.
16 17 18 19 |
# File 'lib/hanami/extensions/view/slice_configured_view.rb', line 16 def initialize(slice) super() @slice = slice end |
Instance Attribute Details
#slice ⇒ Object (readonly)
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.
14 15 16 |
# File 'lib/hanami/extensions/view/slice_configured_view.rb', line 14 def slice @slice end |
Instance Method Details
#extended(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.
21 22 23 24 |
# File 'lib/hanami/extensions/view/slice_configured_view.rb', line 21 def extended(view_class) configure_view(view_class) define_inherited end |
#inspect ⇒ 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.
26 27 28 |
# File 'lib/hanami/extensions/view/slice_configured_view.rb', line 26 def inspect "#<#{self.class.name}[#{slice.name}]>" end |