Sha256: b1326107e44b9a2761e83a5ae005f1d39d5afed80db60e0cea0cbd59685be880
Contents?: true
Size: 408 Bytes
Versions: 5
Compression:
Stored size: 408 Bytes
Contents
# -*- encoding: utf-8 -*- module Webgen class Tag # Prints out the date using a format string which will be passed to Time#strftime. Therefore you # can use everything Time#strftime offers. module Date # Return the current date formatted as specified. def self.call(tag, body, context) Time.now.strftime(context[:config]['tag.date.format']) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems