missing_name() public

Extract the name of the missing constant from the exception message.

begin
  HelloWorld
rescue NameError => e
  e.missing_name
end
# => "HelloWorld"
Show source
Register or log in to add new notes.