Module: Datadog::Contrib::Patchable::ClassMethods

Defined in:
lib/ddtrace/contrib/patchable.rb

Overview

Class methods for integrations

Instance Method Summary collapse

Instance Method Details

#compatible?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/ddtrace/contrib/patchable.rb', line 20

def compatible?
  Gem::Version.new(RUBY_VERSION) >= Gem::Version.new(VERSION::MINIMUM_RUBY_VERSION) && present?
end

#present?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/ddtrace/contrib/patchable.rb', line 16

def present?
  !version.nil?
end

#versionObject



12
13
14
# File 'lib/ddtrace/contrib/patchable.rb', line 12

def version
  nil
end