Class: Aureus::Components::ListingEntry
- Inherits:
-
Renderable
- Object
- Renderable
- Aureus::Components::ListingEntry
- Defined in:
- lib/aureus/components/listing.rb
Instance Method Summary collapse
-
#initialize(head, body) ⇒ ListingEntry
constructor
A new instance of ListingEntry.
- #render ⇒ Object
Methods inherited from Renderable
#compact, #compact_render, #content_tag, #init
Constructor Details
#initialize(head, body) ⇒ ListingEntry
Returns a new instance of ListingEntry.
28 29 30 31 |
# File 'lib/aureus/components/listing.rb', line 28 def initialize head, body @head = head @body = body end |
Instance Method Details
#render ⇒ Object
33 34 35 36 37 |
# File 'lib/aureus/components/listing.rb', line 33 def render content_tag 'tr' do compact content_tag('th',@head), content_tag('td',@body) end end |