Inspectopedia
 
2024.3

'nil' dereference

Warning
New
Last modified: 03 December 2024

Reports possible nil dereferences. Dereferencing nil may cause a NoMethodError.

Use the Ignored receivers list to specify method calls used as receivers that should be ignored (for example, Foo#call or Foo::call for an instance or a singleton method respectively).

Example: