Sha256: 97fb383d6e809c2e0b759849d2ca901d99248048c22671427a73444bb3874355
Contents?: true
Size: 380 Bytes
Versions: 15
Compression:
Stored size: 380 Bytes
Contents
# -*- encoding: utf-8 -*- 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
15 entries across 15 versions & 3 rubygems