Module: ClosureTree::Digraphs
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/closure_tree/digraphs.rb
Instance Method Summary collapse
-
#to_digraph_label ⇒ Object
override this method in your model class if you want a different digraph label.
- #to_dot_digraph ⇒ Object
Instance Method Details
#to_digraph_label ⇒ Object
override this method in your model class if you want a different digraph label.
12 13 14 |
# File 'lib/closure_tree/digraphs.rb', line 12 def to_digraph_label _ct.has_name? ? read_attribute(_ct.name_column) : to_s end |
#to_dot_digraph ⇒ Object
7 8 9 |
# File 'lib/closure_tree/digraphs.rb', line 7 def to_dot_digraph self.class.to_dot_digraph(self_and_descendants) end |