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.



125
126
127
# File 'lib/dom.rb', line 125

def mounted
  @mounted
end

Instance Method Details

#dom_escape(tag = nil) ⇒ Object



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

def dom_escape tag = nil; self end

#dom_escapedObject



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

def dom_escaped; self end

#mounted_set(*mounted) ⇒ Object



117
118
119
120
121
122
123
124
# File 'lib/dom.rb', line 117

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



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

def to_s; self end