Sha256: ce5fbf4e47cb03ba6b20a494e3f914edbcf1f7a6d7269ecd56ca3ac0fb6ae6a3
Contents?: true
Size: 564 Bytes
Versions: 1
Compression:
Stored size: 564 Bytes
Contents
# frozen_string_literal: true module Edtf module Humanize module Language module German include Default module Century extend self def humanizer(date) "#{(date.year.abs / 100) + 1}." \ "#{century_number_suffix}" end private def century_number_suffix ' Jahrhundert' end def century_sign_suffix(date) return ' v. Chr.' if date.year.negative? '' end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
edtf-humanize-2.2.0 | lib/edtf/humanize/language/german.rb |