Sha256: ee2fe19cd41ec89efd32519c291497286e17e27da5461acdbc6646a51f4903d3

Contents?: true

Size: 508 Bytes

Versions: 48

Compression:

Stored size: 508 Bytes

Contents

# frozen_string_literal: true

require_relative 'base_presenter'

module Dsu
  module Presenters
    class EntryPresenter < BasePresenter
      attr_reader :entry

      def initialize(entry, options: {})
        super

        @entry = entry
      end

      def formatted_description
        apply_theme(description, theme_color: color_theme.body)
      end

      def formatted_description_with_index(index:)
        "#{formatted_index(index: index)} #{formatted_description}"
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
dsu-3.0.0.alpha.1 lib/dsu/presenters/entry_presenter.rb
dsu-3.0.0.alpha.0 lib/dsu/presenters/entry_presenter.rb
dsu-2.4.4 lib/dsu/presenters/entry_presenter.rb
dsu-2.4.3 lib/dsu/presenters/entry_presenter.rb
dsu-2.4.2 lib/dsu/presenters/entry_presenter.rb
dsu-2.4.1 lib/dsu/presenters/entry_presenter.rb
dsu-2.4.0 lib/dsu/presenters/entry_presenter.rb
dsu-2.3.2 lib/dsu/presenters/entry_presenter.rb
dsu-2.3.1 lib/dsu/presenters/entry_presenter.rb
dsu-2.3.0 lib/dsu/presenters/entry_presenter.rb
dsu-2.2.2 lib/dsu/presenters/entry_presenter.rb
dsu-2.2.1 lib/dsu/presenters/entry_presenter.rb
dsu-2.2.0 lib/dsu/presenters/entry_presenter.rb
dsu-2.2.0.rc.2 lib/dsu/presenters/entry_presenter.rb
dsu-2.2.0.rc.1 lib/dsu/presenters/entry_presenter.rb
dsu-2.1.4 lib/dsu/presenters/entry_presenter.rb
dsu-2.1.3 lib/dsu/presenters/entry_presenter.rb
dsu-2.1.2 lib/dsu/presenters/entry_presenter.rb
dsu-2.1.1 lib/dsu/presenters/entry_presenter.rb
dsu-2.0.8 lib/dsu/presenters/entry_presenter.rb