Sha256: 1d0432d3659dcc25cc613058c94578085ad7afe088c4d059003d4b2aef0505d6
Contents?: true
Size: 676 Bytes
Versions: 7
Compression:
Stored size: 676 Bytes
Contents
module Relaton module Render module Ietf class Fields < ::Relaton::Render::Fields def nameformat(names) names.nil? and return names parts = %i(surname initials given middle nonpersonal nonpersonalabbrev completename) names_out = names.each_with_object({}) do |n, m| parts.each do |i| m[i] ||= [] m[i] << n[i] end end @r.nametemplate.render(names_out) end # do not format months def dateformat(date, _hash) date.nil? and return nil date_range(date) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems