Class: Steep::Diagnostic::Ruby::RBSError
- Defined in:
- lib/steep/diagnostic/ruby.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Attributes inherited from Base
Instance Method Summary collapse
- #header_line ⇒ Object
-
#initialize(error:, node:, location:) ⇒ RBSError
constructor
A new instance of RBSError.
Methods inherited from Base
#detail_lines, #diagnostic_code
Methods included from Helper
Constructor Details
#initialize(error:, node:, location:) ⇒ RBSError
Returns a new instance of RBSError.
937 938 939 940 |
# File 'lib/steep/diagnostic/ruby.rb', line 937 def initialize(error:, node:, location:) @error = error super(node: node, location: location) end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
935 936 937 |
# File 'lib/steep/diagnostic/ruby.rb', line 935 def error @error end |
Instance Method Details
#header_line ⇒ Object
942 943 944 |
# File 'lib/steep/diagnostic/ruby.rb', line 942 def header_line error.header_line end |