Exception: RBS::CyclicClassAliasDefinitionError
- Includes:
- DetailedMessageable
- Defined in:
- lib/rbs/errors.rb
Instance Attribute Summary collapse
-
#alias_entry ⇒ Object
readonly
Returns the value of attribute alias_entry.
Instance Method Summary collapse
-
#initialize(entry) ⇒ CyclicClassAliasDefinitionError
constructor
A new instance of CyclicClassAliasDefinitionError.
- #location ⇒ Object
Methods included from DetailedMessageable
Constructor Details
#initialize(entry) ⇒ CyclicClassAliasDefinitionError
Returns a new instance of CyclicClassAliasDefinitionError.
543 544 545 546 547 |
# File 'lib/rbs/errors.rb', line 543 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 |
Instance Attribute Details
#alias_entry ⇒ Object (readonly)
Returns the value of attribute alias_entry.
541 542 543 |
# File 'lib/rbs/errors.rb', line 541 def alias_entry @alias_entry end |
Instance Method Details
#location ⇒ Object
549 550 551 |
# File 'lib/rbs/errors.rb', line 549 def location @alias_entry.decl.location end |