Module: CopyrightHelper
- Defined in:
- lib/copyright_helper.rb,
lib/copyright_helper/version.rb
Constant Summary collapse
- VERSION =
"0.0.3"
Class Method Summary collapse
Class Method Details
.create(start_year, url) ⇒ Object
2 3 4 5 6 |
# File 'lib/copyright_helper.rb', line 2 def self.create(start_year,url) current_year = "-#{Time.now.year}" if Time.now.year > start_year year = "#{start_year}#{current_year}" "Copyright © #{year} #{url} All Rights Reserved." end |