stop using awesome_print

This commit is contained in:
Sami Samhuri 2017-12-29 11:12:05 -08:00
parent e5be6c075b
commit bc14963953
No known key found for this signature in database
GPG key ID: F76F41F04D99808F

21
irbrc
View file

@ -1,27 +1,6 @@
require 'rubygems' require 'rubygems'
require 'irb/completion' require 'irb/completion'
# Use awesome print for awesome output
begin
require 'awesome_print'
unless IRB.version.include?('DietRB')
IRB::Irb.class_eval do
def output_value
ap @context.last_value
end
end
else # MacRuby
IRB.formatter = Class.new(IRB::Formatter) do
def inspect_object(object)
object.ai
end
end.new
end
rescue LoadError => e
# puts "!! Failed to load awesome print."
end
# Use the simple prompt if possible. # Use the simple prompt if possible.
IRB.conf[:PROMPT_MODE] = :SIMPLE if IRB.conf[:PROMPT_MODE] == :DEFAULT IRB.conf[:PROMPT_MODE] = :SIMPLE if IRB.conf[:PROMPT_MODE] == :DEFAULT