Exception: RBS::RecursiveTypeAliasError
- Includes:
- DetailedMessageable
- 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
Methods included from DetailedMessageable
Constructor Details
#initialize(alias_names:, location:) ⇒ RecursiveTypeAliasError
Returns a new instance of RecursiveTypeAliasError.
473 474 475 476 477 478 |
# File 'lib/rbs/errors.rb', line 473 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.
470 471 472 |
# File 'lib/rbs/errors.rb', line 470 def alias_names @alias_names end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
471 472 473 |
# File 'lib/rbs/errors.rb', line 471 def location @location end |
Instance Method Details
#name ⇒ Object
480 481 482 |
# File 'lib/rbs/errors.rb', line 480 def name @alias_names.map(&:name).join(', ') end |