class String

Public Instance Methods

ansi2html() click to toggle source
# File lib/dom.rb, line 135
def ansi2html; _ansi2html.dom_escaped end
dom(tag = nil, mounted: nil, **attr) { |self| ... } click to toggle source
# 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
dom_escaped() click to toggle source
# File lib/dom.rb, line 134
def dom_escaped; DomString.new(self) end
jsonml(tag, attr = nil;) click to toggle source
# File lib/dom.rb, line 132
def jsonml tag, attr = nil; [*Dom.json_format(tag, attr), self] end
mounted() click to toggle source
# File lib/dom.rb, line 133
def mounted; nil end