Class: DomString
Constant Summary
Constants inherited
from String
String::AnsiColor
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from String
#ansi2html, #dom, #jsonml, #unescape_html
Instance Attribute Details
#mounted ⇒ Object
Returns the value of attribute mounted.
103
104
105
|
# File 'lib/dom.rb', line 103
def mounted
@mounted
end
|
Instance Method Details
#%(v) ⇒ Object
92
|
# File 'lib/dom.rb', line 92
def % v; super(v).dom_escaped end
|
#*(v) ⇒ Object
93
|
# File 'lib/dom.rb', line 93
def * v; super(v).dom_escaped end
|
#+(v) ⇒ Object
94
|
# File 'lib/dom.rb', line 94
def + v; super(v).dom_escaped end
|
#dom_escaped ⇒ Object
91
|
# File 'lib/dom.rb', line 91
def dom_escaped; self end
|
#escape_html(tag = nil) ⇒ Object
90
|
# File 'lib/dom.rb', line 90
def escape_html tag = nil; self end
|
#mounted_set(*mounted) ⇒ Object
95
96
97
98
99
100
101
102
|
# File 'lib/dom.rb', line 95
def mounted_set *mounted
mounted.compact!
if mounted.empty?
elsif @mounted then @mounted.concat(mounted.join)
else @mounted = mounted.join
end
self
end
|
#to_s ⇒ Object
89
|
# File 'lib/dom.rb', line 89
def to_s; self end
|