Method: Array#dom
- Defined in:
- lib/dom.rb
#dom(tag, attr = {}) ⇒ Object
88 89 90 91 92 |
# File 'lib/dom.rb', line 88 def dom tag, attr = {} "<#{Dom.hyphenize(tag)}#{Dom.attr(attr)}>"\ "#{Dom.join(self, tag)}"\ "</#{Dom.hyphenize(tag)}>".escaped end |