class RBS::DuplicatedDeclarationError

Attributes

decls[R]
name[R]

Public Class Methods

new(name, *decls) click to toggle source
Calls superclass method
# File rbs-2.7.0/lib/rbs/errors.rb, line 342
def initialize(name, *decls)
  @name = name
  @decls = decls

  last_decl = decls.last or raise
  super "#{Location.to_string last_decl.location}: Duplicated declaration: #{name}"
end