123456789_123456789_123456789_123456789_123456789_

Exception: RBS::DuplicatedDeclarationError

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, LoadingError, BaseError, StandardError
Instance Chain:
self, LoadingError, BaseError, StandardError
Inherits: RBS::LoadingError
Defined in: lib/rbs/errors.rb

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(name, *decls) ⇒ DuplicatedDeclarationError

[ GitHub ]

  
# File '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

Instance Attribute Details

#decls (readonly)

[ GitHub ]

  
# File 'lib/rbs/errors.rb', line 396

attr_reader :decls

#name (readonly)

[ GitHub ]

  
# File 'lib/rbs/errors.rb', line 395

attr_reader :name