Sha256: 1b0dad742d1e38cba831f9799616b3431f8a3f679c9f5727dd8be30811e4cec2
Contents?: true
Size: 349 Bytes
Versions: 1
Compression:
Stored size: 349 Bytes
Contents
# -*- coding: utf-8 -*- require './copyrighter/version' require './copyrighter/railtie' if defined?(Rails) module Copyrighter def ©(period, joiner = " – ") return case period when Range then [period.begin, period.end] when Time.now.year then [period] else [period, Time.now.year] end.compact.join(joiner) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
copyrighter-0.0.1 | lib/copyrighter.rb |