Sha256: 4279e58a4666b345648284fa34cca4daeacd03fe2b4476723282b1662fd163b7

Contents?: true

Size: 569 Bytes

Versions: 28

Compression:

Stored size: 569 Bytes

Contents

# frozen_string_literal: true

module ActiveElement
  module Components
    # Provides a description of a page, intended to be used underneath the `page_title` component.
    class PageDescription
      def initialize(controller, content:)
        @controller = controller
        @content = content
      end

      def template
        'active_element/components/page_description'
      end

      def locals
        {
          component: self,
          content: content
        }
      end

      private

      attr_reader :controller, :content
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
active_element-0.0.31 lib/active_element/components/page_description.rb
active_element-0.0.30 lib/active_element/components/page_description.rb
active_element-0.0.29 lib/active_element/components/page_description.rb
active_element-0.0.28 lib/active_element/components/page_description.rb
active_element-0.0.27 lib/active_element/components/page_description.rb
active_element-0.0.26 lib/active_element/components/page_description.rb
active_element-0.0.24 lib/active_element/components/page_description.rb
active_element-0.0.23 lib/active_element/components/page_description.rb
active_element-0.0.22 lib/active_element/components/page_description.rb
active_element-0.0.21 lib/active_element/components/page_description.rb
active_element-0.0.19 lib/active_element/components/page_description.rb
active_element-0.0.18 lib/active_element/components/page_description.rb
active_element-0.0.17 lib/active_element/components/page_description.rb
active_element-0.0.16 lib/active_element/components/page_description.rb
active_element-0.0.15 lib/active_element/components/page_description.rb
active_element-0.0.14 lib/active_element/components/page_description.rb
active_element-0.0.13 lib/active_element/components/page_description.rb
active_element-0.0.12 lib/active_element/components/page_description.rb
active_element-0.0.11 lib/active_element/components/page_description.rb
active_element-0.0.10 lib/active_element/components/page_description.rb