Sha256: dcca97fa3a3c09f0bbfbe300662e9fbe042b0105295d51d2d2ed37d6b5ee1cb0
Contents?: true
Size: 512 Bytes
Versions: 36
Compression:
Stored size: 512 Bytes
Contents
# encoding: utf-8 module Prismic module Fragments class Date < Fragment attr_accessor :value def initialize(value) @value = value end # Generate an HTML representation of the fragment # # @param link_resolver [LinkResolver] The LinkResolver used to build # application's specific URL # # @return [String] the HTML representation def as_html(link_resolver=nil) %(<time>#{value.iso8601(3)}</time>) end end end end
Version data entries
36 entries across 36 versions & 1 rubygems