In Files

  • rbs-1.0.4/lib/rbs/errors.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

RBS::DuplicatedDeclarationError

Attributes

decls[R]
name[R]

Public Class Methods

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