Module: Saxon::FeatureFlags::Helpers Private

Included in:
XSLT::Executable
Defined in:
lib/saxon/feature_flags/helpers.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Helper methods to create feature restrictions in the library. To be mixed in to library classes.

Instance Method Summary collapse

Instance Method Details

#requires_saxon_version(method_name, version_constraint) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

specify that the method named can only run if the version constraint is satisfied

Parameters:

  • method_name (Symbol)

    the name of the method

  • version_constraint (String)

    the version constraint ('>= 9.9')



10
11
12
# File 'lib/saxon/feature_flags/helpers.rb', line 10

def requires_saxon_version(method_name, version_constraint)
  Saxon::FeatureFlags::Version.create(self, method_name, version_constraint)
end