Class: Steep::Diagnostic::Signature::DeprecatedTypeName
- Defined in:
- lib/steep/diagnostic/signature.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#type_name ⇒ Object
readonly
Returns the value of attribute type_name.
Attributes inherited from Base
Instance Method Summary collapse
- #header_line ⇒ Object
-
#initialize(type_name, message, location:) ⇒ DeprecatedTypeName
constructor
A new instance of DeprecatedTypeName.
Methods inherited from Base
#detail_lines, #diagnostic_code, #path
Methods included from Helper
Constructor Details
#initialize(type_name, message, location:) ⇒ DeprecatedTypeName
Returns a new instance of DeprecatedTypeName.
502 503 504 505 506 |
# File 'lib/steep/diagnostic/signature.rb', line 502 def initialize(type_name, , location:) super(location: location) @type_name = type_name @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
500 501 502 |
# File 'lib/steep/diagnostic/signature.rb', line 500 def @message end |
#type_name ⇒ Object (readonly)
Returns the value of attribute type_name.
499 500 501 |
# File 'lib/steep/diagnostic/signature.rb', line 499 def type_name @type_name end |
Instance Method Details
#header_line ⇒ Object
508 509 510 511 512 513 514 515 |
# File 'lib/steep/diagnostic/signature.rb', line 508 def header_line buffer = "Type `#{type_name}` is deprecated" if buffer = +buffer buffer << ": " << end buffer end |