[holy ruby programmers batman!] Adding a configuration file to Utility Belt
Markus Prinz
markus.prinz at qsig.org
Sun Dec 23 18:45:18 EST 2007
On 23.12.2007, at 19:57, Giles Bowkett wrote:
> PDI!
Sorry?
Anyway, I'm done, see attachment.
Usage: After requiring utility belt in your .irbrc, you can use
UtilityBelt.equip to define which gadgets you want to equip (a gadget
being something like is_an, or pastie).
Examples:
UtilityBelt.equip( :all, :except => %w{amazon_upload_shortcut} ) #
Loads everything except amazon_upload_shortcut
UtilityBelt.equip( :all ) # Loads everything. Default, even if equip
is never called
UtilityBelt.equip( :none, :except => %w{amazon_upload_shortcut} ) #
Loads only amazon_upload_shortcut
UtilityBelt.equip( :none ) # Loads no gadgets at all.
The patch depends on the "Move all non-needed global requires to their
own respective files"-patch.
Questions, Comments, Suggestions, Improvements?
regards, Markus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001_add_equipper.patch
Type: application/octet-stream
Size: 3687 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/utilitybelt-tinkering/attachments/20071224/d651bff1/attachment.obj
-------------- next part --------------
More information about the Utilitybelt-tinkering
mailing list