class Tag
Attributes
tag[R]
Public Class Methods
new(depth, tag, text)
click to toggle source
Calls superclass method
Node::new
# File lib/rdnode.rb, line 67 def initialize(depth, tag, text) super(depth) @tag = tag @text = text end
Public Instance Methods
to_csv()
click to toggle source
# File lib/rdnode.rb, line 78 def to_csv @text end
to_desc()
click to toggle source
# File lib/rdnode.rb, line 82 def to_desc @text end
to_rd()
click to toggle source
# File lib/rdnode.rb, line 86 def to_rd "#{dashes(depth)} [[#{@tag}:#{@text}]]" end
to_s()
click to toggle source
# File lib/rdnode.rb, line 74 def to_s "(Tag depth:#{depth}, tag:#{@tag}, text:#{@text}, tmp:#{@tmp})" end