class RBS::CyclicClassAliasDefinitionError - rbs: Ruby Standard Library Documentation

# class RBS::CyclicClassAliasDefinitionError

### Attributes

alias_entry[R]

### Public Class Methods

new(entry) click to toggle source
Calls superclass method

    # File rbs-3.8.0/lib/rbs/errors.rb, line 558
    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.8.0/lib/rbs/errors.rb, line 564
    def location
      @alias_entry.decl.location
    end