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.5 lib/dsu/presenters/entry_presenter.rb
dsu-3.0.4 lib/dsu/presenters/entry_presenter.rb
dsu-3.0.3 lib/dsu/presenters/entry_presenter.rb
dsu-3.0.1 lib/dsu/presenters/entry_presenter.rb
dsu-3.0.0 lib/dsu/presenters/entry_presenter.rb
dsu-3.0.0.beta.3 lib/dsu/presenters/entry_presenter.rb
dsu-3.0.0.beta.2 lib/dsu/presenters/entry_presenter.rb
dsu-3.0.0.beta.1 lib/dsu/presenters/entry_presenter.rb
dsu-3.0.0.beta.0 lib/dsu/presenters/entry_presenter.rb
dsu-3.0.0.alpha.12 lib/dsu/presenters/entry_presenter.rb
dsu-3.0.0.alpha.11 lib/dsu/presenters/entry_presenter.rb
dsu-3.0.0.alpha.10 lib/dsu/presenters/entry_presenter.rb
dsu-3.0.0.alpha.9 lib/dsu/presenters/entry_presenter.rb
dsu-3.0.0.alpha.8 lib/dsu/presenters/entry_presenter.rb
dsu-3.0.0.alpha.7 lib/dsu/presenters/entry_presenter.rb
dsu-3.0.0.alpha.6 lib/dsu/presenters/entry_presenter.rb
dsu-3.0.0.alpha.5 lib/dsu/presenters/entry_presenter.rb
dsu-3.0.0.alpha.4 lib/dsu/presenters/entry_presenter.rb
dsu-3.0.0.alpha.3 lib/dsu/presenters/entry_presenter.rb
dsu-3.0.0.alpha.2 lib/dsu/presenters/entry_presenter.rb