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.



24
25
26
27
# File 'lib/aureus/components/listing.rb', line 24

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

Instance Method Details

#renderObject



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

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