module ActsAsGraph::ClassMethods

Public Instance Methods

acts_as_graph(children: nil) click to toggle source
# File lib/acts_as_graph.rb, line 11
def acts_as_graph children: nil
  @children_method_name = children

  define_method "descendant_#{children}" do
    descendant_vertices
  end
end
children_method_name() click to toggle source
# File lib/acts_as_graph.rb, line 19
def children_method_name
  @children_method_name
end