Class: PostRunner::ViewBottom
- Inherits:
-
Object
- Object
- PostRunner::ViewBottom
- Defined in:
- lib/postrunner/ViewBottom.rb
Overview
This class generates the footer of a HTML page.
Instance Method Summary collapse
-
#to_html(doc) ⇒ Object
Generate the HTML code to that describes the foot section.
Instance Method Details
#to_html(doc) ⇒ Object
Generate the HTML code to that describes the foot section.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/postrunner/ViewBottom.rb', line 23 def to_html(doc) doc.unique(:viewbottom_style) { doc.head { doc.style(style) } } doc.div({ :class => 'footer' }){ doc.hr doc.div({ :class => 'copyright' }) { doc.text("Generated by ") doc.a('PostRunner', { :href => 'https://github.com/scrapper/postrunner' }) doc.text(" #{VERSION} on #{Time.now}") } } end |