Module: RenderTable::Html
- Defined in:
- lib/render_table/html.rb
Class Method Summary collapse
Class Method Details
.html_string(html_procedure_hash, record, index) ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/render_table/html.rb', line 2 def self.html_string(html_procedure_hash, record, index) accumulated_html_strings = [] html_procedure_hash.each do |html_string, procedure| next unless procedure.call(record, index) accumulated_html_strings << html_string end accumulated_html_strings.join(' ') end |