модуль ErrorHighlight
Константы
- VERSION
Публичные методы класса
# File lib/error_highlight/formatter.rb, line 16 def self.formatter Ractor.current[:__error_highlight_formatter__] || DefaultFormatter end
# File lib/error_highlight/formatter.rb, line 20 def self.formatter=(formatter) Ractor.current[:__error_highlight_formatter__] = formatter end
# File lib/error_highlight/base.rb, line 19 def self.spot(...) Spotter.new(...).spot end
Определите фрагмент кода, который, как кажется, связан с данной ошибкой
Аргументы:
node: RubyVM::AbstractSyntaxTree::Node (script_lines should be enabled) point_type: :name | :args name: The name associated with the NameError/NoMethodError
Возвращает:
{
first_lineno: Integer,
first_column: Integer,
last_lineno: Integer,
last_column: Integer,
snippet: String,
} | nil
Ruby Core © 1993–2022 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.