Class: MyAppInfo::Renderer
- Inherits:
-
Object
- Object
- MyAppInfo::Renderer
- Defined in:
- lib/my_app_info/renderer.rb
Class Method Summary collapse
- .app_contactus(contactus_text, contactus_url) ⇒ Object
- .app_copyright(name, msg) ⇒ Object
- .app_privacy(privacy_text, privacy_url) ⇒ Object
- .app_version(app_name, ver) ⇒ Object
Class Method Details
.app_contactus(contactus_text, contactus_url) ⇒ Object
12 13 14 |
# File 'lib/my_app_info/renderer.rb', line 12 def self.app_contactus contactus_text, contactus_url "<a href='#{contactus_url}'>#{contactus_text}</a>".html_safe end |
.app_copyright(name, msg) ⇒ Object
3 4 5 |
# File 'lib/my_app_info/renderer.rb', line 3 def self.app_copyright name, msg "Copyright © #{Time.now.year} #{name}, #{msg}".html_safe end |
.app_privacy(privacy_text, privacy_url) ⇒ Object
9 10 11 |
# File 'lib/my_app_info/renderer.rb', line 9 def self.app_privacy privacy_text, privacy_url "<a href='#{privacy_url}'>#{privacy_text}</a>".html_safe end |
.app_version(app_name, ver) ⇒ Object
6 7 8 |
# File 'lib/my_app_info/renderer.rb', line 6 def self.app_version app_name, ver "#{app_name}, Version #{ver}".html_safe end |