Class: Hanami::Extensions::Action::SliceConfiguredAction Private
- Inherits:
-
Module
- Object
- Module
- Hanami::Extensions::Action::SliceConfiguredAction
- Defined in:
- lib/hanami/extensions/action/slice_configured_action.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 action class defined within a slice's module namespace.
Instance Attribute Summary collapse
- #slice ⇒ Object readonly private
Instance Method Summary collapse
- #extended(action_class) ⇒ Object private
-
#initialize(slice) ⇒ SliceConfiguredAction
constructor
private
A new instance of SliceConfiguredAction.
- #inspect ⇒ Object private
Constructor Details
#initialize(slice) ⇒ SliceConfiguredAction
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 SliceConfiguredAction.
15 16 17 18 |
# File 'lib/hanami/extensions/action/slice_configured_action.rb', line 15 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.
13 14 15 |
# File 'lib/hanami/extensions/action/slice_configured_action.rb', line 13 def slice @slice end |
Instance Method Details
#extended(action_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.
20 21 22 23 24 25 26 |
# File 'lib/hanami/extensions/action/slice_configured_action.rb', line 20 def extended(action_class) configure_action(action_class) configure_action_i18n(action_class) extend_behavior(action_class) define_inherited define_new 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.
28 29 30 |
# File 'lib/hanami/extensions/action/slice_configured_action.rb', line 28 def inspect "#<#{self.class.name}[#{slice.name}]>" end |