class RBS::DuplicatedDeclarationError

Attributes

decls[R]
name[R]

Public Class Methods

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