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.



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

def mounted
  @mounted
end

Instance Method Details

#dom_escapedObject



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

def dom_escaped; self end

#escape_html(tag = nil) ⇒ Object



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

def escape_html tag = nil; self end

#mounted_set(*mounted) ⇒ Object

def + v; super(v).dom_escaped end



106
107
108
109
110
111
112
113
# File 'lib/dom.rb', line 106

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



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

def to_s; self end