Sha256: 6ec54d424668409372198e63fe6d1633e4fb815bdaaf1dcbe26cf9641a5aca5b

Contents?: true

Size: 486 Bytes

Versions: 41

Compression:

Stored size: 486 Bytes

Contents

module TSort[Node]
  interface _Sortable[Node]
    # #tsort_each_node is used to iterate for all nodes over a graph.
    #
    def tsort_each_node: () { (Node) -> void } -> void

    # #tsort_each_child is used to iterate for child nodes of node.
    #
    def tsort_each_child: (Node) { (Node) -> void } -> void
  end

  interface _EachNode[Node]
    def call: () { (Node) -> void } -> void
  end

  interface _EachChild[Node]
    def call: (Node) { (Node) -> void } -> void
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
rbs-0.17.0 stdlib/tsort/0/interfaces.rbs