Module: ClosureTree::Digraphs
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/closure_tree/digraphs.rb
Defined Under Namespace
Modules: ClassMethods
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.
10 11 12 |
# File 'lib/closure_tree/digraphs.rb', line 10 def to_digraph_label _ct.has_name? ? read_attribute(_ct.name_column) : to_s end |
#to_dot_digraph ⇒ Object
5 6 7 |
# File 'lib/closure_tree/digraphs.rb', line 5 def to_dot_digraph self.class.to_dot_digraph(self_and_descendants) end |