class RBS::CyclicClassAliasDefinitionError

Attributes

alias_entry[R]

Public Class Methods

new(entry) click to toggle source
Calls superclass method
# File rbs-3.2.1/lib/rbs/errors.rb, line 550
def initialize(entry)
  @alias_entry = entry

  super "#{Location.to_string(entry.decl.location&.[](:old_name))}: A #{alias_entry.decl.new_name} is a cyclic definition"
end

Public Instance Methods

location() click to toggle source
# File rbs-3.2.1/lib/rbs/errors.rb, line 556
def location
  @alias_entry.decl.location
end