Class: ExistDB::ClassUnwrap
- Inherits:
-
Object
- Object
- ExistDB::ClassUnwrap
- Defined in:
- lib/existdb/classwrap.rb
Class Method Summary collapse
Class Method Details
.[](obj) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/existdb/classwrap.rb', line 5 def [](obj) if obj.is_a?(Array) then return obj.map{ |o| ClassUnwrap[o] } else obj.instance_variable_get(:@obj) || obj end end |