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