Method: ElasticAPM::Spies.safe_defined?

Defined in:
lib/elastic_apm/spies.rb

.safe_defined?(const_name) ⇒ Boolean

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.

Returns:

  • (Boolean)


97
98
99
# File 'lib/elastic_apm/spies.rb', line 97

def self.safe_defined?(const_name)
  Util::Inflector.safe_constantize(const_name)
end