class Hanami::Extensions::View::PartHelpers
Standalone helpers class including both {StandardHelpers} as well as the user-defined helpers for the slice.
Used where helpers should be addressed via an intermediary object (i.e. in parts), rather than mixed into a class directly.
@api private @since 2.1.0
Attributes
_context[R]
Returns the context for the current view rendering.
@return [Hanami::View::Context] the context
@api public @since 2.1.0
context[R]
Returns the context for the current view rendering.
@return [Hanami::View::Context] the context
@api public @since 2.1.0
Public Class Methods
configure_for_slice(slice)
click to toggle source
@api private @since 2.1.0
# File lib/hanami/extensions/view/part.rb, line 61 def self.configure_for_slice(slice) extend SliceConfiguredHelpers.new(slice) end
new(context:)
click to toggle source
@api private @since 2.1.0
# File lib/hanami/extensions/view/part.rb, line 79 def initialize(context:) @_context = context end