Sha256: 92cb1533e2fa44170fcc15b9b7030a429b384ab77a0c9d623257d9e365560f6f

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 Bytes

Contents

# Copyrighter

Handy way to print out copyright dates, like in a footer.

Assuming it's 2012,

<%= © 2012 %> will print "2012"

Next year it will automatically change to "2012 - 2013"

You can give it either an integer or a range of integers.

You can also provide an optional second argument, which is what will join the start and end of the range

© 1999, '-' => "1999-2012"
© 1999, ' - ' => "1999 - 2012"
© 1999, ':' => "1999:2012"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
copyrighter-1.0.0 README.md