forked from sferik/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
irbrc
29 lines (26 loc) · 578 Bytes
/
irbrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
begin
require 'rubygems'
rescue Exception => ex
warn "Warning in .irbrc: #{ex.inspect}"
end
begin
# Histories
require 'irb/ext/save-history'
IRB.conf[:SAVE_HISTORY] = 1000
IRB.conf[:EVAL_HISTORY] = 100
rescue Exception => ex
warn "Warning in .irbrc: #{ex.inspect}"
end
begin
# Tab completion
require 'irb/completion'
IRB.conf[:USE_READLINE] = true
rescue Exception => ex
warn "Warning in .irbrc: #{ex.inspect}"
end
# Easily print methods local to an object's class
class Object
def local_methods
(methods - Object.instance_methods).sort
end
end