Object
# File rbs-1.4.0/lib/rbs/definition_builder/method_builder.rb, line 43
def each
if block_given?
Sorter.new(methods).each_strongly_connected_component do |scc|
if scc.size > 1
raise RecursiveAliasDefinitionError.new(type: type, defs: scc)
end
yield scc[0]
end
else
enum_for :each
end
end