class RBS::DefinitionBuilder::MethodBuilder::Methods::Sorter

Attributes

methods[R]

Public Class Methods

new(methods) click to toggle source
# File rbs-3.4.0/lib/rbs/definition_builder/method_builder.rb, line 68
def initialize(methods)
  @methods = methods
end

Public Instance Methods

tsort_each_child(defn) { |old| ... } click to toggle source
# File rbs-3.4.0/lib/rbs/definition_builder/method_builder.rb, line 76
def tsort_each_child(defn)
  if (member = defn.original).is_a?(AST::Members::Alias)
    if old = methods[member.old_name]
      yield old
    end
  end
end
tsort_each_node(&block) click to toggle source
# File rbs-3.4.0/lib/rbs/definition_builder/method_builder.rb, line 72
def tsort_each_node(&block)
  methods.each_value(&block)
end