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