Method: String#dom
- Defined in:
- lib/dom.rb
#dom(tag = nil, mounted: nil, **attr) ⇒ Object
121 122 123 124 125 126 127 128 129 130 131 |
# File 'lib/dom.rb', line 121 def dom tag = nil, mounted: nil, **attr if tag "<%s>%s</%s>".%( Dom.format(tag, attr) .insert(1, (block_given? ? yield(self) : self).dom_escape(tag)._ansi2html) ) else dom_escape end .dom_escaped.mounted_set(mounted) end |