Method: EPlat::Concerns::OverwriteInstanceMethods#create_resource_for

Defined in:
lib/e_plat/resource/concerns/overwrite_instance_methods.rb

#create_resource_for(resource_name) ⇒ Object

Create and return a class definition for a resource inside the current resource



81
82
83
84
85
86
87
88
# File 'lib/e_plat/resource/concerns/overwrite_instance_methods.rb', line 81

def create_resource_for(resource_name)
	resource = Class.new(EPlat::Base) # <- this line changed
	resource.prefix = self.class.prefix
	resource.site = self.class.site
	self.class.const_set(resource_name, resource)
		
	resource
end