lib/garcon/chef/resource/base_dsl.rb
# Hook called when module is included, extends a descendant with class
# and instance methods.
#
# @param [Module] descendant
#   The module or class including Garcon::Provider::BaseDSL
#
# @return [self]
#
Hook called when module is included, extends a descendant with class
and instance methods.
Hook called when module is included extends a descendant with class and instance methods .
def included(descendant)
          super
          descendant.extend ClassMethods
          if descendant.is_a?(Class) && descendant.superclass == Chef::Provider
            descendant.class_exec { include Implementation }
          end
          descendant.class_exec { include Chef::DSL::Recipe }
        end
def included ( descendant ) super descendant . extend ClassMethods if descendant . is_a? ( Class ) && descendant . superclass == Chef :: Provider descendant . class_exec { include Implementation } end descendant . class_exec { include Chef :: DSL :: Recipe } end
Hook called when module is included, extends a descendant with class
and instance methods.
Hook called when module is included extends a descendant with class and instance methods .
None
self
descendant
<not_specific>
<not_specific>
descendant The module or class including Garcon::Provider::BaseDSL
descendant The module or class including Garcon :: Provider :: BaseDSL