lib/openstudio/extension.rb in openstudio-extension-0.5.1 vs lib/openstudio/extension.rb in openstudio-extension-0.6.0.rc1

- old
+ new

@@ -1,7 +1,7 @@ # ******************************************************************************* -# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. +# OpenStudio(R), Copyright (c) 2008-2022, Alliance for Sustainable Energy, LLC. # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # (1) Redistributions of source code must retain the above copyright notice, @@ -85,9 +85,10 @@ def self.all_extensions # DLM: consider calling Bundler.require in this method # do not call Bundler.require when requiring this file, only when calling this method result = [] ObjectSpace.each_object(::Class) do |obj| + next if !obj.ancestors.include?(OpenStudio::Extension::Extension) result << obj end