class Steep::Diagnostic::Ruby::UnresolvedOverloading
def detail_lines
def detail_lines StringIO.new.tap do |io| io.puts "Method types:" first_type, *rest_types = method_types defn = " def #{method_name}" io.puts "#{defn}: #{first_type}" rest_types.each do |method_type| io.puts "#{" " * defn.size}| #{method_type}" end end.string.chomp end
def header_line
def header_line "Cannot find compatible overloading of method `#{method_name}` of type `#{receiver_type}`" end
def initialize(node:, receiver_type:, method_name:, method_types:)
def initialize(node:, receiver_type:, method_name:, method_types:) super node: node @receiver_type = receiver_type @method_name = method_name @method_types = method_types end