method

missing_name?

missing_name?(name)
public

Was this exception raised because the given name was missing?

begin
  HelloWorld
rescue NameError => e
  e.missing_name?("HelloWorld")
end
# => true