diff options
Diffstat (limited to 'lib/custodian')
-rw-r--r-- | lib/custodian/testfactory.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/custodian/testfactory.rb b/lib/custodian/testfactory.rb index 179b050..f5e342d 100644 --- a/lib/custodian/testfactory.rb +++ b/lib/custodian/testfactory.rb @@ -68,6 +68,17 @@ module Custodian end + # + # Get the friendly-type of this class + # + def get_type + @@subclasses.each do |name,value| + if ( value == self.class ) + return name + end + end + nil + end # |