Class: Aureus::ListingEntry
- Inherits:
-
Renderable
- Object
- Renderable
- Aureus::ListingEntry
- Defined in:
- lib/aureus/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.
26 27 28 29 |
# File 'lib/aureus/listing.rb', line 26 def initialize head, body @head = head @body = body end |
Instance Method Details
#render ⇒ Object
31 32 33 34 35 |
# File 'lib/aureus/listing.rb', line 31 def render content_tag "tr" do compact content_tag("th",@head), content_tag("td",@body) end end |