class RBS::DuplicatedInterfaceMethodDefinitionError
属性
member[R]
method_name[R]
type[R]
公共类方法
new(type:, method_name:, member:) 点击切换源代码
调用父类方法
# File rbs-3.8.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
公共实例方法
location() 点击切换源代码
# File rbs-3.8.0/lib/rbs/errors.rb, line 307 def location member.location end
qualified_method_name() 点击切换源代码
# File rbs-3.8.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
type_name() 点击切换源代码
# File rbs-3.8.0/lib/rbs/errors.rb, line 320 def type_name type.name end