In Files

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

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.4.0/lib/rbs/errors.rb, line 313
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
            
There is an updated format of the API docs for this version here.