Sha256: 330c45909540e26bf62625814b97a8fb9619e1d0bed0c220cd864999f544a168
Contents?: true
Size: 692 Bytes
Versions: 35
Compression:
Stored size: 692 Bytes
Contents
# frozen_string_literal: true require_relative 'no_entries_to_display' module Dsu module Views module EntryGroup module Shared class NoEntriesToDisplayForMonthOf < NoEntriesToDisplay def initialize(time:, options: {}) super(times: [time.beginning_of_month, time.end_of_month], options: options) @time = time end private attr_reader :time # TODO: I18n. def message "(nothing to display for the month of #{month_string}, #{time_range})" end def month_string I18n.l(time, format: '%B') end end end end end end
Version data entries
35 entries across 35 versions & 1 rubygems