Module: Kernel
- Defined in:
- lib/run_loop/patches/awesome_print.rb
Instance Method Summary collapse
-
#ap(object, options = {}) ⇒ Object
Patch for BasicObject inspections.
Instance Method Details
#ap(object, options = {}) ⇒ Object
Patch for BasicObject inspections. github.com/awesome-print/awesome_print/pull/253
22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/run_loop/patches/awesome_print.rb', line 22 def ap(object, = {}) if object_id begin puts object.ai() rescue NoMethodError => _ puts "(Object doesn't support #inspect)" end object unless AwesomePrint.console? end end |