Class: Link
Instance Attribute Summary collapse
Attributes inherited from Node
#tmp
Instance Method Summary
collapse
Methods inherited from Node
#add_on_tree, #depth, #id, #id=
Constructor Details
#initialize(depth, dest) ⇒ Link
Returns a new instance of Link.
43
44
45
46
|
# File 'lib/rdnode.rb', line 43
def initialize(depth, dest)
super(depth)
@dest = dest
end
|
Instance Attribute Details
#dest ⇒ Object
Returns the value of attribute dest.
47
48
49
|
# File 'lib/rdnode.rb', line 47
def dest
@dest
end
|
Instance Method Details
#to_csv ⇒ Object
57
58
59
|
# File 'lib/rdnode.rb', line 57
def to_csv
""
end
|
#to_desc ⇒ Object
53
54
55
|
# File 'lib/rdnode.rb', line 53
def to_desc
""
end
|
#to_rd ⇒ Object
61
62
63
|
# File 'lib/rdnode.rb', line 61
def to_rd
"#{dashes(depth)} >>#{@dest}"
end
|
#to_s ⇒ Object
49
50
51
|
# File 'lib/rdnode.rb', line 49
def to_s
"(Link depth:#{@depth}, dest:#{@dest}, tmp:#{@tmp})"
end
|