2012-09-05 22:41:54 -04:00
|
|
|
# AwesomePrint might be loaded implicitly through ~/.irbrc or ~/.pryrc
|
|
|
|
# so do nothing for subsequent requires.
|
2010-11-08 22:24:07 -05:00
|
|
|
#
|
2012-09-03 14:54:32 -04:00
|
|
|
unless defined?(AwesomePrint::Inspector)
|
2019-01-22 16:50:04 -05:00
|
|
|
# FIXME: not sure we need these, but..
|
|
|
|
require 'awesome_print/custom_defaults'
|
|
|
|
|
2019-01-22 16:04:42 -05:00
|
|
|
%w(active_support awesome_method_array string object class kernel).each do |file|
|
2016-06-07 20:42:48 -04:00
|
|
|
require "awesome_print/core_ext/#{file}"
|
2011-05-13 17:42:04 -04:00
|
|
|
end
|
2010-11-08 22:24:07 -05:00
|
|
|
|
2016-06-07 21:12:55 -04:00
|
|
|
require 'awesome_print/inspector'
|
|
|
|
require 'awesome_print/formatter'
|
2019-01-22 12:48:03 -05:00
|
|
|
|
2019-01-22 11:01:43 -05:00
|
|
|
Dir["./lib/awesome_print/formatters/**/*.rb"].each { |f| require f }
|
2019-01-22 16:34:16 -05:00
|
|
|
|
|
|
|
require 'awesome_print/version'
|
|
|
|
require 'awesome_print/core_ext/logger' if defined?(Logger)
|
2011-05-13 17:42:04 -04:00
|
|
|
end
|