forked from awesome-print/awesome_print
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel Bretoi
committed
Apr 5, 2010
1 parent
eb1cf1d
commit e415db6
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |