lib/hanami/extensions/view/slice_configured_helpers.rb in hanami-2.1.0.rc1 vs lib/hanami/extensions/view/slice_configured_helpers.rb in hanami-2.1.0.rc2

- old
+ new

@@ -1,22 +1,33 @@ # frozen_string_literal: true module Hanami module Extensions module View - # @api private + # Provides slice-specific helper methods any view object requiring access to helpers. + # + # @api public + # @since 2.1.0 class SliceConfiguredHelpers < Module attr_reader :slice + # @api private + # @since 2.1.0 def initialize(slice) super() @slice = slice end + # @api private + # @since 2.1.0 def extended(klass) include_helpers(klass) end + # @return [String] + # + # @api public + # @since 2.1.0 def inspect "#<#{self.class.name}[#{slice.name}]>" end private