module Kernel

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

Public Class Methods

ap(object, options = {}) click to toggle source
# File lib/awesome_print/core_ext/kernel.rb, line 14
def ap(object, options = {})
  puts object.ai(options)
  object
end
Also aliased as: awesome_print

Public Instance Methods

ai(options = {}) click to toggle source
# File lib/awesome_print/core_ext/kernel.rb, line 8
def ai(options = {})
  ap = AwesomePrint::Inspector.new(options)
  ap.awesome self
end
Also aliased as: awesome_inspect
awesome_inspect(options = {})
Alias for: ai
awesome_print(object, options = {})
Alias for: ap

Private Instance Methods

ap(object, options = {}) click to toggle source
# File lib/awesome_print/core_ext/kernel.rb, line 14
def ap(object, options = {})
  puts object.ai(options)
  object
end
Also aliased as: awesome_print