Sha256: 9c135b50d8a260d63bdd3cafd82b117b1997d769dd2137466109770997a65edb
Contents?: true
Size: 693 Bytes
Versions: 35
Compression:
Stored size: 693 Bytes
Contents
# frozen_string_literal: true require_relative 'no_entries_to_display' module Dsu module Views module EntryGroup module Shared class NoEntriesToDisplayForYearOf < NoEntriesToDisplay def initialize(time:, options: {}) super(times: [time.beginning_of_year, time.end_of_year], options: options) @time = time end private attr_reader :time # TODO: I18n. def message "(nothing to display for the year of #{year_string}, #{time_range})" end # TODO: I18n. def year_string time.year end end end end end end
Version data entries
35 entries across 35 versions & 1 rubygems