Class: DomString

Inherits:
String show all
Defined in:
lib/dom.rb

Constant Summary

Constants inherited from String

String::AnsiColor

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from String

#_ansi2html, #ansi2html, #dom, #jsonml

Instance Attribute Details

#mountedObject (readonly)

Returns the value of attribute mounted.



113
114
115
# File 'lib/dom.rb', line 113

def mounted
  @mounted
end

Instance Method Details

#dom_escapedObject



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_sObject



100
# File 'lib/dom.rb', line 100

def to_s; self end