Module: Kernel

Defined in:
lib/ap/core_ext/kernel.rb

Overview

Copyright © 2010-2011 Michael Dvorkin

Awesome Print is freely distributable under the terms of MIT license. See LICENSE file or www.opensource.org/licenses/mit-license.php


Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.ap(object, options = {}) ⇒ Object



14
15
16
# File 'lib/ap/core_ext/kernel.rb', line 14

def ap(object, options = {})
  puts object.ai(options)
end

Instance Method Details

#ai(options = {}) ⇒ Object Also known as: awesome_inspect



8
9
10
11
# File 'lib/ap/core_ext/kernel.rb', line 8

def ai(options = {})
  ap = AwesomePrint.new(options)
  ap.send(:awesome, self)
end