= private = protected
[](*args, p2 = {})
Equivalent to calling Dir.glob( 0).
static VALUE dir_s_aref(int argc, VALUE *argv, VALUE obj) { VALUE opts, base; argc = rb_scan_args(argc, argv, "*:", NULL, &opts); dir_glob_options(opts, &base, NULL); if (argc == 1) { return rb_push_glob(argv[0], base, 0); } return dir_globs(argc, argv, base, 0); }
See glob for more usage information and comments.