Skip to content

Commit bcc160b

Browse files
[DOC] RDoc for File::Constants (#8103)
1 parent 4dccb14 commit bcc160b

File tree

2 files changed

+311
-71
lines changed

2 files changed

+311
-71
lines changed

dir.c

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -3654,52 +3654,12 @@ Init_Dir(void)
36543654

36553655
rb_define_singleton_method(rb_cFile,"fnmatch", file_s_fnmatch, -1);
36563656
rb_define_singleton_method(rb_cFile,"fnmatch?", file_s_fnmatch, -1);
3657-
3658-
/* Document-const: File::Constants::FNM_NOESCAPE
3659-
*
3660-
* Disables escapes in File.fnmatch and Dir.glob patterns
3661-
*/
36623657
rb_file_const("FNM_NOESCAPE", INT2FIX(FNM_NOESCAPE));
3663-
3664-
/* Document-const: File::Constants::FNM_PATHNAME
3665-
*
3666-
* Wildcards in File.fnmatch and Dir.glob patterns do not match directory
3667-
* separators
3668-
*/
36693658
rb_file_const("FNM_PATHNAME", INT2FIX(FNM_PATHNAME));
3670-
3671-
/* Document-const: File::Constants::FNM_DOTMATCH
3672-
*
3673-
* The '*' wildcard matches filenames starting with "." in File.fnmatch
3674-
* and Dir.glob patterns
3675-
*/
36763659
rb_file_const("FNM_DOTMATCH", INT2FIX(FNM_DOTMATCH));
3677-
3678-
/* Document-const: File::Constants::FNM_CASEFOLD
3679-
*
3680-
* Makes File.fnmatch patterns case insensitive (but not Dir.glob
3681-
* patterns).
3682-
*/
36833660
rb_file_const("FNM_CASEFOLD", INT2FIX(FNM_CASEFOLD));
3684-
3685-
/* Document-const: File::Constants::FNM_EXTGLOB
3686-
*
3687-
* Allows file globbing through "{a,b}" in File.fnmatch patterns.
3688-
*/
36893661
rb_file_const("FNM_EXTGLOB", INT2FIX(FNM_EXTGLOB));
3690-
3691-
/* Document-const: File::Constants::FNM_SYSCASE
3692-
*
3693-
* System default case insensitiveness, equals to FNM_CASEFOLD or
3694-
* 0.
3695-
*/
36963662
rb_file_const("FNM_SYSCASE", INT2FIX(FNM_SYSCASE));
3697-
3698-
/* Document-const: File::Constants::FNM_SHORTNAME
3699-
*
3700-
* Makes patterns to match short names if existing. Valid only
3701-
* on Microsoft Windows.
3702-
*/
37033663
rb_file_const("FNM_SHORTNAME", INT2FIX(FNM_SHORTNAME));
37043664
}
37053665

0 commit comments

Comments
 (0)