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
2015-03-17 19:30:50 -03:00

25 lines
688 B
Ruby

#
# AwesomePrint might be loaded implicitly through ~/.irbrc or ~/.pryrc
# so do nothing for subsequent requires.
#
unless defined?(AwesomePrint::Inspector)
%w(array string method object class kernel).each do |file|
require "awesome_print/core_ext/#{file}"
end
require 'awesome_print/support'
require 'awesome_print/configuration'
require 'awesome_print/inspector'
require 'awesome_print/formatter'
require 'awesome_print/version'
require 'awesome_print/core_ext/logger' if defined?(Logger)
#
# Load remaining extensions.
#
if defined?(ActiveSupport)
ActiveSupport.on_load(:action_view) do
require 'awesome_print/ext/action_view'
end
end
end