Sha256: 157b667c6d304ec5c58d73f4976e9c6f0cb073b0c4020258165ae5b378f8943d
Contents?: true
Size: 353 Bytes
Versions: 4
Compression:
Stored size: 353 Bytes
Contents
module Webgen::Tag # Prints out the date using a format string which will be passed to Time#strftime. Therefore you # can use everything Time#strftime offers. class Date include Base # Return the current date formatted as specified. def call(tag, body, context) Time.now.strftime(param('tag.date.format')) end end end
Version data entries
4 entries across 4 versions & 2 rubygems