module Saxon module FeatureFlags # Helper methods to create feature restrictions in the library. To be mixed # in to library classes. module Helpers # specify that the method named can only run if the version constraint is satisfied # # @param method_name [Symbol] the name of the method # @param version_constraint [String] the version constraint ('>= 9.9') def requires_saxon_version(method_name, version_constraint) Saxon::FeatureFlags::Version.create(self, method_name, version_constraint) end end end end