Exception: RBS::CyclicTypeParameterBound
- Includes:
- DetailedMessageable
- Defined in:
- lib/rbs/errors.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#method_name ⇒ Object
readonly
Returns the value of attribute method_name.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#type_name ⇒ Object
readonly
Returns the value of attribute type_name.
Instance Method Summary collapse
-
#initialize(type_name:, method_name:, params:, location:) ⇒ CyclicTypeParameterBound
constructor
A new instance of CyclicTypeParameterBound.
Methods included from DetailedMessageable
Constructor Details
#initialize(type_name:, method_name:, params:, location:) ⇒ CyclicTypeParameterBound
Returns a new instance of CyclicTypeParameterBound.
519 520 521 522 523 524 525 526 |
# File 'lib/rbs/errors.rb', line 519 def initialize(type_name:, method_name:, params:, location:) @type_name = type_name @method_name = method_name @params = params @location = location super "#{Location.to_string(location)}: Cyclic type parameter bound is prohibited" end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
517 518 519 |
# File 'lib/rbs/errors.rb', line 517 def location @location end |
#method_name ⇒ Object (readonly)
Returns the value of attribute method_name.
517 518 519 |
# File 'lib/rbs/errors.rb', line 517 def method_name @method_name end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
517 518 519 |
# File 'lib/rbs/errors.rb', line 517 def params @params end |
#type_name ⇒ Object (readonly)
Returns the value of attribute type_name.
517 518 519 |
# File 'lib/rbs/errors.rb', line 517 def type_name @type_name end |