# -*- 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