123456789_123456789_123456789_123456789_123456789_

Exception: RBS::RecursiveTypeAliasError

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, LoadingError, ErrorBase, StandardError
Instance Chain:
self, LoadingError, ErrorBase, StandardError
Inherits: RBS::LoadingError
Defined in: lib/rbs/errors.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(alias_names:, location:) ⇒ RecursiveTypeAliasError

[ GitHub ]

  
# File 'lib/rbs/errors.rb', line 394

def initialize(alias_names:, location:)
  @alias_names = alias_names
  @location = location

  super "#{Location.to_string location}: Recursive type alias definition found for: #{name}"
end

Instance Attribute Details

#alias_names (readonly)

[ GitHub ]

  
# File 'lib/rbs/errors.rb', line 391

attr_reader :alias_names

#location (readonly)

[ GitHub ]

  
# File 'lib/rbs/errors.rb', line 392

attr_reader :location

Instance Method Details

#name

[ GitHub ]

  
# File 'lib/rbs/errors.rb', line 401

def name
  @alias_names.map(&:name).join(', ')
end