Exception: RBS::RecursiveTypeAliasError
- Defined in:
- lib/rbs/errors.rb
Instance Attribute Summary collapse
-
#alias_names ⇒ Object
readonly
Returns the value of attribute alias_names.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
-
#initialize(alias_names:, location:) ⇒ RecursiveTypeAliasError
constructor
A new instance of RecursiveTypeAliasError.
- #name ⇒ Object
Constructor Details
#initialize(alias_names:, location:) ⇒ RecursiveTypeAliasError
Returns a new instance of RecursiveTypeAliasError.
432 433 434 435 436 437 |
# File 'lib/rbs/errors.rb', line 432 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 ⇒ Object (readonly)
Returns the value of attribute alias_names.
429 430 431 |
# File 'lib/rbs/errors.rb', line 429 def alias_names @alias_names end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
430 431 432 |
# File 'lib/rbs/errors.rb', line 430 def location @location end |
Instance Method Details
#name ⇒ Object
439 440 441 |
# File 'lib/rbs/errors.rb', line 439 def name @alias_names.map(&:name).join(', ') end |