Ruby/Справочник/Dir: различия между версиями

Содержимое удалено Содержимое добавлено
м Категоризация по запросу на 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[&quot;config.?&quot;] #=&gt; [&quot;config.h&quot;]
Dir.glob("config.?") #=> ["config.h"]