Module: Recursivar::Formats::TextWithoutColor

Includes:
TreeGraph
Defined in:
lib/recursivar/formats.rb

Instance Method Summary collapse

Instance Method Details

#children_for_tree_graphObject



18
19
20
# File 'lib/recursivar/formats.rb', line 18

def children_for_tree_graph
  vars
end

#label_for_tree_graphObject



12
13
14
15
16
# File 'lib/recursivar/formats.rb', line 12

def label_for_tree_graph
  label = "#{name} (#{obj.class})"
  return label unless ref
  "#{label} #{ref.location_str}"
end

#to_sObject



22
23
24
# File 'lib/recursivar/formats.rb', line 22

def to_s
  tree_graph
end