Method: Chef::ResourceResolver#provided_by?

Defined in:
lib/chef/resource_resolver.rb

#provided_by?(resource_class) ⇒ 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.

Whether this DSL is provided by the given resource_class.

Does NOT call provides? on the resource (it is assumed this is being called from provides?).

Returns:

  • (Boolean)


99
100
101
# File 'lib/chef/resource_resolver.rb', line 99

def provided_by?(resource_class)
  potential_handlers.include?(resource_class)
end