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