rmm5t / dotfiles

Ryan McGeary's configuration shiznit that makes him productive

This URL has Read+Write access

dotfiles / irbrc
100644 21 lines (16 sloc) 0.376 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
IRB.conf[:PROMPT_MODE] = :SIMPLE
 
if ENV.include?('RAILS_ENV') && !Object.const_defined?('RAILS_DEFAULT_LOGGER')
  require 'logger'
  RAILS_DEFAULT_LOGGER = Logger.new(STDOUT)
end
 
class Object
  def local_methods
    (methods - Object.instance_methods).sort
  end
end
 
require 'rubygems'
begin
  require 'utility_belt'
rescue LoadError
  warn "Missing utility_belt gem"
end