Class: Link

Inherits:
Node show all
Defined in:
lib/rdnode.rb

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

#destObject (readonly)

Returns the value of attribute dest.



47
48
49
# File 'lib/rdnode.rb', line 47

def dest
  @dest
end

Instance Method Details

#to_csvObject



57
58
59
# File 'lib/rdnode.rb', line 57

def to_csv
  ""
end

#to_descObject



53
54
55
# File 'lib/rdnode.rb', line 53

def to_desc
  ""
end

#to_rdObject



61
62
63
# File 'lib/rdnode.rb', line 61

def to_rd
  "#{dashes(depth)} >>#{@dest}"
end

#to_sObject



49
50
51
# File 'lib/rdnode.rb', line 49

def to_s
  "(Link depth:#{@depth}, dest:#{@dest}, tmp:#{@tmp})"
end