# File lib/rubygems/command.rb, line 290
  def when_invoked(&block)
    @when_invoked = block
  end