class Rexle::Comment
Public Class Methods
new(val='')
click to toggle source
# File lib/rexle.rb, line 1361 def initialize(val='') @e = Element.new('_').add_text val @value = val end
Public Instance Methods
add_element(e2)
click to toggle source
# File lib/rexle.rb, line 1366 def add_element(e2) @e.add e2 end
add_text(t)
click to toggle source
# File lib/rexle.rb, line 1370 def add_text(t) @e.add_text t end
inspect()
click to toggle source
# File lib/rexle.rb, line 1374 def inspect() @value end
print()
click to toggle source
# File lib/rexle.rb, line 1378 def print() "<!--%s-->" % @e.root.xpath('//./text()').join end
texts()
click to toggle source
# File lib/rexle.rb, line 1382 def texts() @e.texts end
to_s()
click to toggle source
# File lib/rexle.rb, line 1386 def to_s() @value end