class RBS::DuplicatedInterfaceMethodDefinitionError
Attributes
Public Class Methods
Source
# File bundled-src/rbs-3.10.0/lib/rbs/errors.rb, line 299 def initialize(type:, method_name:, member:) @type = type @method_name = method_name @member = member super "#{member.location}: Duplicated method definition: #{qualified_method_name}" end
Calls superclass method
Exception::new
Public Instance Methods
Source
# File bundled-src/rbs-3.10.0/lib/rbs/errors.rb, line 307 def location member.location end
Source
# File bundled-src/rbs-3.10.0/lib/rbs/errors.rb, line 311 def qualified_method_name case type when Types::ClassSingleton "#{type.name}.#{method_name}" else "#{type.name}##{method_name}" end end
Source
# File bundled-src/rbs-3.10.0/lib/rbs/errors.rb, line 320 def type_name type.name end