Sha256: d7b2c6a2fb3a0a55f2dbda60877a18b8a0d25396a43bdd09fa8e60f0cdc4ffff
Contents?: true
Size: 597 Bytes
Versions: 2
Compression:
Stored size: 597 Bytes
Contents
module Edtf module Humanize module Set include Edtf::Humanize::Formats def humanize format_set_entries(self).to_sentence( words_connector: Edtf::Humanize.configuration.set_dates_connector, last_word_connector: Edtf::Humanize.configuration.set_last_date_connector, two_words_connector: Edtf::Humanize.configuration.set_two_dates_connector ) end private def format_set_entries(dates) dates.entries.map { |date| "#{apply_if_approximate(date)}#{simple_date_format(date)}" } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
edtf-humanize-0.0.7 | lib/edtf/humanize/set.rb |
edtf-humanize-0.0.6 | lib/edtf/humanize/set.rb |