Revision: 5709
                            
                                                            
                                    
                                        
Updated Code
                                    
                                    
                                                    
                        at October 1, 2009 14:56 by cczona
                            
                            Updated Code
## Required
# install
sudo gem install utility_belt
# settings for ~/.irbrc
require 'rubygems'
require 'utility_belt'
UtilityBelt::Themes.background(:light) #optional
## Now you can play in irb
# Interactively edit IRB code in TextMate
mate
# read from clipboard
MacClipboard.read
# write to clipboard
MacClipboard.write 'some text to be pasted elsewhere'
# review history
h # 'history' also works, but who wants to type?
# re-play last command
h!
# re-play arbitrary command from history
h! 123
# save history to some file
history_write('/path/to/file')
# find class name
grep_classes("num")
#=> ["Bignum", "Fixnum", "Numeric", "REXML::SyncEnumerator"]
# find method name
"foo".grep_methods("pretty")
#=> ["pretty_inspect", "pretty_print_instance_variables", ... ]
# google for whatever's in clipboard
google
# arbitrary google search
google singleWord
google 'multiple words'
                                
                            Revision: 5708
                            
                                                            
                                    
                                        
Updated Code
                                    
                                    
                                                    
                        at March 29, 2008 12:15 by cczona
                            
                            Updated Code
## Required
# install
sudo gem install utility-belt
# settings for ~/.irbrc
require 'rubygems'
require 'utility_belt'
UtilityBelt::Themes.background(:light) #optional
## Now you can play in irb
# Interactively edit IRB code in TextMate
mate
# read from clipboard
MacClipboard.read
# write to clipboard
MacClipboard.write 'some text to be pasted elsewhere'
# review history
h # 'history' also works, but who wants to type?
# re-play last command
h!
# re-play arbitrary command from history
h! 123
# save history to some file
history_write('/path/to/file')
# find class name
grep_classes("num")
#=> ["Bignum", "Fixnum", "Numeric", "REXML::SyncEnumerator"]
# find method name
"foo".grep_methods("pretty")
#=> ["pretty_inspect", "pretty_print_instance_variables", ... ]
# google for whatever's in clipboard
google
# arbitrary google search
google singleWord
google 'multiple words'
                                
                            Revision: 5707
                            
                                                            
                                    
                                        
Initial Code
                                    
                                    
                                                            
                                    
                                        
Initial URL
                                    
                                    
                                                            
                                    
                                        
Initial Description
                                    
                                    
                                                            
                                    
                                        
Initial Title
                                    
                                    
                                                            
                                    
                                        
Initial Tags
                                    
                                    
                                                            
                                    
                                        
Initial Language
                                    
                                    
                                                    
                        at March 28, 2008 12:24 by cczona
                            
                            Initial Code
## Required
# install
sudo gem install utility-belt
# settings for ~/.irbrc
require 'rubygems'
require 'utility_belt'
UtilityBelt::Themes.background(:light) #optional
## Now you can play in irb
# Interactively edit IRB code in TextMate
edit mate
# read from clipboard
MacClipboard.read
# write to clipboard
MacClipboard.write 'some text to be pasted elsewhere'
# review history
h # 'history' also works, but who wants to type?
# re-play last command
h!
# re-play arbitrary command from history
h! 123
# save history to some file
history_write('/path/to/file')
# find class name
grep_classes("num")
#=> ["Bignum", "Fixnum", "Numeric", "REXML::SyncEnumerator"]
# find method name
"foo".grep_methods("pretty")
#=> ["pretty_inspect", "pretty_print_instance_variables",
"pretty_print_inspect", "pretty_print", "pretty_print_cycle"]
# google for whatever's in clipboard
google
# arbitrary google search
google singleWord
google 'multiple words'
                                Initial URL
http://utilitybelt.rubyforge.org/usage.html
Initial Description
Note: most of these will be available to the shell and Rails' console too.
Initial Title
Irb power tricks with Wirble & Utility-Belt
Initial Tags
class, textmate, google, ruby, osx
Initial Language
Ruby