class Text

Public Class Methods

new(depth, text) click to toggle source
Calls superclass method Node::new
# File lib/rdnode.rb, line 93
def initialize(depth, text)
  super(depth)
  @text = text
end

Public Instance Methods

to_csv() click to toggle source
# File lib/rdnode.rb, line 102
def to_csv
  @text
end
to_desc() click to toggle source
# File lib/rdnode.rb, line 106
def to_desc
  @text
end
to_rd() click to toggle source
# File lib/rdnode.rb, line 110
def to_rd
  "#{dashes(depth)} #{@text}"
end
to_s() click to toggle source
# File lib/rdnode.rb, line 98
def to_s
  "(Text depth:#{depth}, text:#{@text}, tmp:#{@tmp})"
end