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

27 lines
778 B
Ruby
Raw Normal View History

require 'awesome_print/formatters'
require 'awesome_print/inspector'
require 'awesome_print/formatter'
require 'awesome_print/version'
2019-01-22 16:50:04 -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
end
end
# 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
# FIXME: not sure we need these, but..
require 'awesome_print/custom_defaults'
2019-01-22 16:34:16 -05:00