Ruby/Справочник/Dir: различия между версиями
Содержимое удалено Содержимое добавлено
Ashikbot (обсуждение | вклад) м Категоризация по запросу на w:ВП:РДБ |
Сунприат (обсуждение | вклад) мНет описания правки |
||
Строка 115:
Matches any one character in <tt>set</tt>. Behaves exactly like character sets in Regexp, including set negation (<tt>[^a-z]</tt>).
Matches either literal <tt>p</tt> or literal <tt>q</tt>. Matching literals may be more than one character in length. More than two literals may be specified. Equivalent to pattern alternation in regexp.
Escapes the next metacharacter.{{
<code>Dir["config.?"] #=> ["config.h"]
Dir.glob("config.?") #=> ["config.h"]
|