class RBS::InvalidOverloadMethodError

属性

kind[R]
members[R]
method_name[R]
type_name[R]

公共类方法

new(type_name:, method_name:, kind:, members:) 点击以切换源
调用超类方法
# File rbs-3.8.0/lib/rbs/errors.rb, line 362
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

公共实例方法

location() 点击以切换源
# File rbs-3.8.0/lib/rbs/errors.rb, line 378
def location
  members[0].location
end