mattpolito (owner)

Revisions

gist: 71730 Download_button fork
public
Public Clone URL: git://gist.github.com/71730.git
Embed All Files: show embed
.irbrc #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# load rubygems, wirble and utility_belt
require 'rubygems'
require 'wirble'
require 'utility_belt'
require 'irb/completion'
require 'pp'
 
# load wirble
Wirble.init
Wirble.colorize
 
# Log to STDOUT if in Rails
if ENV.include?('RAILS_ENV') && !Object.const_defined?('RAILS_DEFAULT_LOGGER')
 require 'logger'
 RAILS_DEFAULT_LOGGER = Logger.new(STDOUT)
end
 
# Easily print methods local to an object's class
class Object
  def local_methods
    (methods - Object.instance_methods).sort
  end
end