Method: IsoDoc::Metadata#monthyr
- Defined in:
- lib/isodoc/metadata_date.rb
#monthyr(isodate) ⇒ Object
25 26 27 28 29 30 |
# File 'lib/isodoc/metadata_date.rb', line 25 def monthyr(isodate) m = /(?<yr>\d\d\d\d)-(?<mo>\d\d)/.match isodate return isodate unless m && m[:yr] && m[:mo] l10n("#{months[m[:mo].to_sym]} #{m[:yr]}") end |