# File rbs-2.1.0/lib/rbs/errors.rb, line 214 def initialize(type,, method_name,, members)) @type = type @method_name = method_name @members = members message = "#{Location.to_string location}: #{qualified_method_name} has duplicated definitions" if members.size > 1 message << " in #{other_locations.map { |loc| Location.to_string loc }.join(', ')}" end super message end
# File rbs-2.1.0/lib/rbs/errors.rb, line 239 def location members[0].location end
# File rbs-2.1.0/lib/rbs/errors.rb, line 243 def other_locations members.drop(1).map(&:location) end