Parent

Methods

Included Modules

Class/Module Index [+]

Quicksearch

Webgen::Tag::Date

Prints out the date using a format string which will be passed to Time#strftime. Therefore you can use everything Time#strftime offers.

Public Instance Methods

call(tag, body, context) click to toggle source

Return the current date formatted as specified.

# File lib/webgen/tag/date.rb, line 11
def call(tag, body, context)
  Time.now.strftime(param('tag.date.format'))
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.