Class: DomString
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from String
#ansi2html, #dom, #jsonml
Instance Attribute Details
#mounted ⇒ Object
Returns the value of attribute mounted.
149
150
151
|
# File 'lib/dom.rb', line 149
def mounted
@mounted
end
|
Instance Method Details
#dom_escaped ⇒ Object
140
|
# File 'lib/dom.rb', line 140
def dom_escaped; self end
|
#mounted_set(*mounted) ⇒ Object
141
142
143
144
145
146
147
148
|
# File 'lib/dom.rb', line 141
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
139
|
# File 'lib/dom.rb', line 139
def to_s; self end
|