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

Attributes

methods[R]

Public Class Methods

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

Public Instance Methods

tsort_each_child(defn) { |old| ... } click to toggle source
# File rbs-1.4.0/lib/rbs/definition_builder/method_builder.rb, line 70
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-1.4.0/lib/rbs/definition_builder/method_builder.rb, line 66
def tsort_each_node(&block)
  methods.each_value(&block)
end