module CopyrightPresenter::Helpers
Public Instance Methods
copyright_long( name, start_year=Time.now.strftime( '%Y' ))
click to toggle source
# File lib/copyright_presenter/helpers.rb, line 4 def copyright_long( name, start_year=Time.now.strftime( '%Y' )) copyright_long_multi_year( name, start_year ) end
copyright_long_multi_year( company_name, start_year=Time.now.strftime( '%Y' ))
click to toggle source
# File lib/copyright_presenter/helpers.rb, line 16 def copyright_long_multi_year( company_name, start_year=Time.now.strftime( '%Y' )) CopyrightPresenter::Copyright.new( company_name, start_year ).long end
copyright_long_single_year( company_name, start_year=Time.now.strftime( '%Y' ))
click to toggle source
# File lib/copyright_presenter/helpers.rb, line 12 def copyright_long_single_year( company_name, start_year=Time.now.strftime( '%Y' )) CopyrightPresenter::Copyright.new( company_name, start_year ).long( :single_year => true ) end
copyright_short( name, start_year=Time.now.strftime( '%Y' ))
click to toggle source
# File lib/copyright_presenter/helpers.rb, line 8 def copyright_short( name, start_year=Time.now.strftime( '%Y' )) copyright_short_multi_year( name, start_year ) end
copyright_short_multi_year( company_name, start_year=Time.now.strftime( '%Y' ))
click to toggle source
# File lib/copyright_presenter/helpers.rb, line 24 def copyright_short_multi_year( company_name, start_year=Time.now.strftime( '%Y' )) CopyrightPresenter::Copyright.new( company_name, start_year ).short end
copyright_short_single_year( company_name, start_year=Time.now.strftime( '%Y' ))
click to toggle source
# File lib/copyright_presenter/helpers.rb, line 20 def copyright_short_single_year( company_name, start_year=Time.now.strftime( '%Y' )) CopyrightPresenter::Copyright.new( company_name, start_year ).short( :single_year => true ) end