Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (21 sloc) 561 Bytes
IRB.conf[:USE_READLINE] = true
IRB.conf[:PROMPT_MODE] = :SIMPLE if IRB.conf[:PROMPT_MODE] == :DEFAULT
IRB.conf[:SAVE_HISTORY] = 1000
IRB.conf[:AUTO_INDENT] = true
require 'irb/completion'
require 'irb/ext/save-history'
def rails?(v=nil)
v2 = ($0 == 'irb' && ENV['RAILS_ENV'])
v3 = ($0 == 'script/rails' && Rails.env)
case v
when 2 then v2
when 3 then v3
else v2 || v3
end
end
load File.dirname(__FILE__) + '/.railsrc' if rails?
class Object
def interesting_methods
(self.methods - Object.instance_methods).sort
end
end
Something went wrong with that request. Please try again.