lib/sn_foil/adapters/orms/base_adapter.rb in snfoil-0.8.1 vs lib/sn_foil/adapters/orms/base_adapter.rb in snfoil-0.8.2

- old
+ new

@@ -23,9 +23,17 @@ end def attributes=(_attributes) raise NotImplementedError, '#attributes= not implemented in adapter' end + + def is_a?(check_class) + __getobj__.class.object_id == check_class.object_id + end + + def klass + __getobj__.class + end end end end end