Class: Aureus::Components::ListingEntry

Inherits:
Renderable
  • Object
show all
Defined in:
lib/aureus/components/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.



28
29
30
31
# File 'lib/aureus/components/listing.rb', line 28

def initialize head, body
  @head = head
  @body = body
end

Instance Method Details

#renderObject



33
34
35
36
37
# File 'lib/aureus/components/listing.rb', line 33

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