Commit 36874a85052b3b3b393eadc7d1854418e3ed383f
- Date: Wed Apr 30 17:06:26 +0000 2008
- Committer: Yurii Rashkovskii (yrashk@gmail.com)
- Author: Yurii Rashkovskii (yrashk@gmail.com)
- Commit SHA1: 36874a85052b3b3b393eadc7d1854418e3ed383f
- Tree SHA1: e9262b46dea03c10fba2e72269a87a4bc14c1c0f
StrokeDB::Config#inspect has been added
Commit diff
| |   |
| 121 | 121 | @stores[key] = store_instance |
| 122 | 122 | end |
| 123 | 123 | |
| 124 | def inspect |
| 125 | "#<StrokeDB::Config:0x#{object_id.to_s(16)}>" |
| 126 | end |
| 127 | |
| 124 | 128 | private |
| 125 | 129 | |
| 126 | 130 | def constantize(name,type) |
| toggle raw diff |
--- a/lib/strokedb/config.rb
+++ b/lib/strokedb/config.rb
@@ -121,6 +121,10 @@ module StrokeDB
@stores[key] = store_instance
end
+ def inspect
+ "#<StrokeDB::Config:0x#{object_id.to_s(16)}>"
+ end
+
private
def constantize(name,type) |