Sha256: af38ade2ddb04ff040dee7125549e5597cd27731864b452f96300af68bb48ffd

Contents?: true

Size: 569 Bytes

Versions: 3

Compression:

Stored size: 569 Bytes

Contents

module Edtf
  module Humanize
    module Set

      include Edtf::Humanize::Formats

      def humanize
        display = []
        self.entries.each do |date|
          display << "#{apply_if_approximate(date)}#{simple_date_format(date)}"
        end
        display.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

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
edtf-humanize-0.0.5 lib/edtf/humanize/set.rb
edtf-humanize-0.0.4 lib/edtf/humanize/set.rb
edtf-humanize-0.0.3 lib/edtf/humanize/set.rb