This is the API documentation for tmpdir: Ruby Standard Library Documentation.
CDir
::mktmpdir (Dir)
::tmpdir (Dir)