class RBS::InvalidOverloadMethodError

Attributes

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

Public Class Methods

new(type_name:, method_name:, kind:, members:) click to toggle source
Calls superclass method
# File rbs-3.4.4/lib/rbs/errors.rb, line 354
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

Public Instance Methods

location() click to toggle source
# File rbs-3.4.4/lib/rbs/errors.rb, line 370
def location
  members[0].location
end