Class: AwesomePrint::Formatter
- Inherits:
-
Object
- Object
- AwesomePrint::Formatter
- Defined in:
- lib/run_loop/patches/awesome_print.rb
Instance Method Summary collapse
Instance Method Details
#awesome_self(object, type) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/run_loop/patches/awesome_print.rb', line 7 def awesome_self(object, type) if @options[:raw] && object.instance_variables.any? awesome_object(object) elsif object.respond_to?(:to_hash) awesome_hash(object.to_hash) else colorize(object.inspect.to_s, type) end end |