fix parfait ist scope

This commit is contained in:
Torsten Ruger 2015-06-19 20:13:28 +03:00
parent 9adf0b7e00
commit 921bb76f83

View File

@ -83,10 +83,10 @@ module Sof
end end
#TODO get all superclsses here, but this covers 99% so . . moving on #TODO get all superclsses here, but this covers 99% so . . moving on
superclasses = [object.class.superclass.name] superclasses = [object.class.superclass.name]
if superclasses.include?( "Array") or superclasses.include?( "List") if superclasses.include?( "Array") or superclasses.include?( "Parfait::List")
collect_array object, next_level collect_array object, next_level
end end
if superclasses.include?( "Hash") or superclasses.include?( "Dictionary") if superclasses.include?( "Hash") or superclasses.include?( "Parfait::Dictionary")
collect_hash object, next_level collect_hash object, next_level
end end
end end