Class: Aureus::ListingEntry

Inherits:
Renderable show all
Defined in:
lib/aureus/listing.rb

Instance Method Summary collapse

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

#renderObject



31
32
33
34
35
# File 'lib/aureus/listing.rb', line 31

def render
	 "tr" do
		compact ("th",@head), ("td",@body)
	end
end