* Dir.mkdtemp([string]) { ... } -> string
*
* This method securely creates temporary directories. It is a wrapper for the
- * mkdtemp() function in the standard C library. It takes an optional String
- * parameter as a template describing the desired form of the directory name
- * and overwriting the template in-place; if no template is supplied then
- * "/tmp/temp.XXXXXX" is used as a default.
+ * <code>mkdtemp()</code> function in the standard C library. It takes an
+ * optional String parameter as a template describing the desired form of the
+ * directory name and overwriting the template in-place; if no template is
+ * supplied then "/tmp/temp.XXXXXX" is used as a default.
*
- * If supplied a block, performs a Dir.chdir into the created directory and
- * yields to the block:
+ * If supplied a block, performs a <code>Dir.chdir</code> into the created
+ * directory and yields to the block:
*
* # this: # is a shorthand for:
* Dir.mkdtemp do # dir = Dir.mkdtemp
* end # puts Dir.pwd
* # end
*
- * Note that the exact implementation of mkdtemp() may vary depending on the
- * target system. For example, on Mac OS X at the time of writing, the man page
- * states that the template may contain "some number" of "Xs" on the end of the
- * string, whereas on Red Hat Enterprise Linux it states that the template
- * suffix "must be XXXXXX".
+ * Note that the exact implementation of <code>mkdtemp()</code> may vary
+ * depending on the target system. For example, on Mac OS X at the time of
+ * writing, the man page states that the template may contain "some number" of
+ * "Xs" on the end of the string, whereas on Red Hat Enterprise Linux it states
+ * that the template suffix "must be XXXXXX".
+ *
+ * @param [String] optional template string
+ * @return [String, nil] the filled-in template string, or nil in the event of
+ * an error
*/
static VALUE dir_mkdtemp_m(int argc, VALUE *argv, VALUE self)
{