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
2019-01-22 16:50:04 -05:00

19 lines
620 B
Ruby

# AwesomePrint might be loaded implicitly through ~/.irbrc or ~/.pryrc
# so do nothing for subsequent requires.
#
unless defined?(AwesomePrint::Inspector)
# 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|
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 }
require 'awesome_print/version'
require 'awesome_print/core_ext/logger' if defined?(Logger)
end