method

name_pattern

Importance_0
Ruby latest stable (v2_5_5) - 0 notes - Class: DependencyCommand
name_pattern(args) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# 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
Register or log in to add new notes.