def initialize(options = {})
@options = {
indent: 4,
index: true,
html: false,
multiline: true,
plain: false,
raw: false,
sort_keys: false,
sort_vars: true,
limit: false,
ruby19_syntax: false,
color: {
args: :pale,
array: :white,
bigdecimal: :blue,
class: :yellow,
date: :greenish,
falseclass: :red,
fixnum: :blue,
float: :blue,
hash: :pale,
keyword: :cyan,
method: :purpleish,
nilclass: :red,
rational: :blue,
string: :yellowish,
struct: :pale,
symbol: :cyanish,
time: :greenish,
trueclass: :green,
variable: :cyanish
}
}
merge_custom_defaults!
merge_options!(options)
@formatter = AwesomePrint::Formatter.new(self)
@indentator = AwesomePrint::Indentator.new(@options[:indent].abs)
Thread.current[AP] ||= []
end