method

new

Importance_0
v2_1_10 - Show latest stable - 0 notes - Class: YankCommand
new() public

No documentation

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

Hide source
# File lib/rubygems/commands/yank_command.rb, line 37
  def initialize
    super 'yank', 'Remove a pushed gem from the index'

    add_version_option("remove")
    add_platform_option("remove")

    add_option('--undo') do |value, options|
      options[:undo] = true
    end

    add_option('-k', '--key KEY_NAME',
               'Use API key from your gem credentials file') do |value, options|
      options[:key] = value
    end
  end
Register or log in to add new notes.