method

name_pattern

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