class method
ErrorHighlight::DefaultFormatter.max_snippet_width=
max_snippet_width=(width)
lib/error_highlight/formatter.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/error_highlight/formatter.rb, line 45
def self.max_snippet_width=(width)
return Ractor.current[:__error_highlight_max_snippet_width__] = :disabled if width.nil?
width = width.to_i
if width < MIN_SNIPPET_WIDTH
warn "'max_snippet_width' adjusted to minimum value of #{MIN_SNIPPET_WIDTH}."
width = MIN_SNIPPET_WIDTH
end
Ractor.current[:__error_highlight_max_snippet_width__] = width
end
No documentation available