Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3f0eda0

Browse files
committed
comments
1 parent dabcd3a commit 3f0eda0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎lib/regexp_trie.rb‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44

55
class RegexpTrie
66

7+
# Factly method to call `new(*strings).to_regexp(option)` in short.
8+
#
79
# @param [Array<String>] strings Set of patterns
8-
# @param [Fixnum,Boolean] option The second argument of Regexp.new()
10+
# @param [Fixnum,Boolean] option The second argument of `Regexp.new()` passed to build a regexp instance
911
# @return [Regexp]
1012
def self.union(*strings, option: nil)
1113
new(*strings).to_regexp(option)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /