Method: Bake::Base.derive

Defined in:
lib/bake/base.rb

.derive(path = []) ⇒ Object

Generate a base class for the specified path.



14
15
16
17
18
19
20
# File 'lib/bake/base.rb', line 14

def self.derive(path = [])
	klass = Class.new(self)
	
	klass.const_set(:PATH, path)
	
	return klass
end