1
0
Fork 0
mirror of https://github.com/awesome-print/awesome_print synced 2023-03-27 23:22:34 -04:00
awesome_print/lib/awesome_print.rb

20 lines
620 B
Ruby
Raw Normal View History

# AwesomePrint might be loaded implicitly through ~/.irbrc or ~/.pryrc
# so do nothing for subsequent requires.
#
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'
%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}"
end
require 'awesome_print/inspector'
require 'awesome_print/formatter'
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)
end