Module: Deas::ErbTags::Tag
- Defined in:
- lib/deas-erbtags/tag.rb
Instance Method Summary collapse
Instance Method Details
#tag(name, *args) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/deas-erbtags/tag.rb', line 6 def tag(name, *args) opts, content = [ args.last.kind_of?(::Hash) ? args.pop : {}, args.first ] attrs = U.html_attrs(opts) "<#{name}#{attrs}#{content.nil? ? ' /' : ">#{content}</#{name}"}>" end |