Module: DynamicFooter::FooterInfo
- Defined in:
- lib/dynamic_footer/footer_info.rb
Class Method Summary collapse
Class Method Details
.format_footer(footer_statement = {}) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/dynamic_footer/footer_info.rb', line 13 def self.( = {}) "#{[:copyright]} #{[:year]} #{[:name]} #{[:separator]} #{[:rights]}" end |
.info(footer_element = {}) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/dynamic_footer/footer_info.rb', line 3 def self.info( = {}) { copyright: [:copyright] || '©', year: Time.now.year, name: [:name] || Rails.application.class.module_parent_name, separator: [:separator] || ' - ', rights: [:rights] || 'All Rights Reserved' } end |