Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

ErrorHighlight::Spotter#prism_spot_call_for_name

prism_spot_call_for_name

Example:

x.foo
 ^^^^
x.foo(42)
 ^^^^
x&.foo
 ^^^^^
x[42]
 ^^^^
x.foo = 1
 ^^^^^^
x[42] = 1
 ^^^^^^
x + 1
  ^
+x
^
foo(42)
^^^
foo 42
^^^
foo
^^^