class Aureus::Components::ListingEntry
Public Class Methods
new(head, body)
click to toggle source
# File lib/aureus/components/listing.rb, line 24 def initialize(head, body) @head = head @body = body end
Public Instance Methods
render()
click to toggle source
# File lib/aureus/components/listing.rb, line 29 def render content_tag 'tr' do compact content_tag('th', @head), content_tag('td', @body) end end