method
regexp
v2_1_10 -
Show latest stable
- Class:
OptionParser::Completion
regexp(key, icase)public
No documentation available.
# File lib/optparse.rb, line 225
def self.regexp(key, icase)
Regexp.new('\A' + Regexp.quote(key).gsub(/\w+\b/, '\&\w*'), icase)
end