class RBS::DuplicatedDeclarationError

Attributes

decls[R]
name[R]

Public Class Methods

new(name, *decls) click to toggle source
Calls superclass method
# File rbs-3.4.4/lib/rbs/errors.rb, line 390
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