2019-01-23 19:11:53 -05:00
|
|
|
require 'awesome_print/formatters'
|
|
|
|
require 'awesome_print/inspector'
|
|
|
|
require 'awesome_print/formatter'
|
|
|
|
require 'awesome_print/version'
|
2019-01-22 16:50:04 -05:00
|
|
|
|
2019-01-23 19:11:53 -05:00
|
|
|
module AwesomePrint
|
|
|
|
class << self
|
|
|
|
attr_accessor :defaults, :force_colors
|
|
|
|
|
|
|
|
# Class accessor to force colorized output (ex. forked subprocess where TERM
|
|
|
|
# might be dumb).
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
def force_colors!(value = true)
|
|
|
|
@force_colors = value
|
|
|
|
end
|
2011-05-13 17:42:04 -04:00
|
|
|
end
|
2019-01-23 19:11:53 -05:00
|
|
|
end
|
2010-11-08 22:24:07 -05:00
|
|
|
|
2019-01-23 19:11:53 -05:00
|
|
|
# CORE EXTENSIONS... now that ap is loaded, inject awesome behavior into ruby
|
|
|
|
%w(awesome_method_array string object class kernel logger active_support).each do |file|
|
|
|
|
require "awesome_print/core_ext/#{file}"
|
|
|
|
end
|
2019-01-22 12:48:03 -05:00
|
|
|
|
2019-01-23 19:11:53 -05:00
|
|
|
# FIXME: not sure we need these, but..
|
|
|
|
require 'awesome_print/custom_defaults'
|
2019-01-22 16:34:16 -05:00
|
|
|
|