Module: AutoHtml::TagHelper

Extended by:
TagHelper
Included in:
TagHelper
Defined in:
lib/auto_html/tag_helper.rb

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?
    (tag_name, yield, attrs)
  else
    unary_tag(tag_name, attrs)
  end
end