Class: Steep::Diagnostic::Ruby::RBSError

Inherits:
Base show all
Defined in:
lib/steep/diagnostic/ruby.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#location, #node

Instance Method Summary collapse

Methods inherited from Base

#detail_lines, #diagnostic_code

Methods included from Helper

#error_name, #full_message

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

#errorObject (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_lineObject



942
943
944
# File 'lib/steep/diagnostic/ruby.rb', line 942

def header_line
  error.header_line
end