Exception: RBS::InvalidOverloadMethodError
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
DefinitionError ,
ErrorBase ,
StandardError
|
|
Instance Chain:
self,
DefinitionError ,
ErrorBase ,
StandardError
|
|
Inherits: |
RBS::DefinitionError
|
Defined in: | lib/rbs/errors.rb |
Class Method Summary
Instance Attribute Summary
- #kind readonly
- #members readonly
- #method_name readonly
- #type_name readonly
Constructor Details
.new(type_name:, method_name:, kind:, members:) ⇒ InvalidOverloadMethodError
# File 'lib/rbs/errors.rb', line 281
def initialize(type_name:, method_name:, kind:, members:) @type_name = type_name @method_name = method_name @kind = kind @members = members delimiter = case kind when :instance "#" when :singleton "." end super "#{Location.to_string members[0].location}: Invalid method overloading: #{type_name}#{delimiter}#{method_name}" end
Instance Attribute Details
#kind (readonly)
[ GitHub ]# File 'lib/rbs/errors.rb', line 278
attr_reader :kind
#members (readonly)
[ GitHub ]# File 'lib/rbs/errors.rb', line 279
attr_reader :members
#method_name (readonly)
[ GitHub ]# File 'lib/rbs/errors.rb', line 277
attr_reader :method_name
#type_name (readonly)
[ GitHub ]# File 'lib/rbs/errors.rb', line 276
attr_reader :type_name