Module: Diagnostics::Data::Table::HTMLMethods

Defined in:
lib/diagnostics/data/table.rb

Instance Method Summary collapse

Instance Method Details

#wrap(tag) ⇒ Object



32
33
34
35
36
# File 'lib/diagnostics/data/table.rb', line 32

def wrap(tag)
  concat "<#{tag}>"
  yield if block_given?
  concat "</#{tag}>"
end