mirror of
https://github.com/awesome-print/awesome_print
synced 2023-03-27 23:22:34 -04:00
Merge branch 'master' of git://github.com/danielb2/awesome_print into danielb2/master
This commit is contained in:
commit
40df70cea5
2 changed files with 12 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
#------------------------------------------------------------------------------
|
||||
require File.dirname(__FILE__) + "/ap/core_ext/string"
|
||||
require File.dirname(__FILE__) + "/ap/core_ext/kernel"
|
||||
require File.dirname(__FILE__) + "/ap/core_ext/object"
|
||||
require File.dirname(__FILE__) + "/ap/awesome_print"
|
||||
|
||||
require File.dirname(__FILE__) + "/ap/mixin/rails" if defined?(::Rails)
|
||||
|
|
11
lib/ap/core_ext/object.rb
Normal file
11
lib/ap/core_ext/object.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Copyright (c) 2010 Michael Dvorkin
|
||||
#
|
||||
# Awesome Print is freely distributable under the terms of MIT license.
|
||||
# See LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
||||
#------------------------------------------------------------------------------
|
||||
class Object
|
||||
def awesome_inspect(options = {})
|
||||
ap = AwesomePrint.new(options)
|
||||
ap.send(:awesome, self).to_s
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue