Module: AutoHtml::TagHelper
Overview
XHTML tags builder
Instance Method Summary collapse
Instance Method Details
#tag(tag_name, attrs = {}) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/auto_html/tag_helper.rb', line 6 def tag(tag_name, attrs = {}) if block_given? content_tag(tag_name, yield, attrs) else unary_tag(tag_name, attrs) end end |