Class: DomString
Constant Summary
Constants inherited from String
Instance Attribute Summary collapse
-
#mounted ⇒ Object
readonly
Returns the value of attribute mounted.
Instance Method Summary collapse
- #dom_escaped ⇒ Object
- #escape_html(tag = nil) ⇒ Object
-
#mounted_set(*mounted) ⇒ Object
def + v; super(v).dom_escaped end.
- #to_s ⇒ Object
Methods inherited from String
#_ansi2html, #ansi2html, #dom, #jsonml
Instance Attribute Details
#mounted ⇒ Object (readonly)
Returns the value of attribute mounted.
113 114 115 |
# File 'lib/dom.rb', line 113 def mounted @mounted end |
Instance Method Details
#dom_escaped ⇒ Object
102 |
# File 'lib/dom.rb', line 102 def dom_escaped; self end |
#escape_html(tag = nil) ⇒ Object
101 |
# File 'lib/dom.rb', line 101 def escape_html tag = nil; self end |
#mounted_set(*mounted) ⇒ Object
def + v; super(v).dom_escaped end
105 106 107 108 109 110 111 112 |
# File 'lib/dom.rb', line 105 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
100 |
# File 'lib/dom.rb', line 100 def to_s; self end |