Sha256: 3fe483d860e6f9bc070a4b5da270b11ea5cf902e5afe208799d3e01b65c9b673
Contents?: true
Size: 414 Bytes
Versions: 107
Compression:
Stored size: 414 Bytes
Contents
require 'rubygems/command_manager' ## # This is an example of exactly what NOT to do. # # DO NOT include code like this in your rubygems_plugin.rb class Gem::Commands::InterruptCommand < Gem::Command def initialize super('interrupt', 'Raises an Interrupt Exception', {}) end def execute raise Interrupt, "Interrupt exception" end end Gem::CommandManager.instance.register_command :interrupt
Version data entries
107 entries across 107 versions & 2 rubygems