method
name_pattern
v2_5_5 -
Show latest stable
- Class:
Gem::Commands::DependencyCommand
name_pattern(args)private
No documentation available.
# File lib/rubygems/commands/dependency_command.rb, line 208
def name_pattern args
args << '' if args.empty?
if args.length == 1 and args.first =~ /\A\/(.*)\/(i)?\z/ then
flags = $2 ? Regexp::IGNORECASE : nil
Regexp.new $1, flags
else
/\A#{Regexp.union(*args)}/
end
end