Class: DomString
Constant Summary
Constants inherited
from String
String::AnsiColor
Instance Method Summary
collapse
Methods inherited from String
#ansi2html, #dom, #escaped, #jsonml
Instance Method Details
#%(v) ⇒ Object
81
|
# File 'lib/dom.rb', line 81
def % v; super(v).escaped end
|
#escape_ajax ⇒ Object
Newline in Javascript terminates the command, causing ‘Unterminated string literal` error
85
|
# File 'lib/dom.rb', line 85
def escape_ajax; tr($/, "\\\n").to_json end
|
#escape_html(tag) ⇒ Object
83
|
# File 'lib/dom.rb', line 83
def escape_html tag; self end
|
#to_s ⇒ Object
82
|
# File 'lib/dom.rb', line 82
def to_s; self end
|