Use a case statement instead.
Updated the @param tag.
Added XML.open.
Added @since tags.
Style.
Group specs.