Class

Spec

Extends:

A spec knows where a generator was found and how to instantiate it. Metadata include the generator’s name, its base path, and the source which yielded it (PathSource, GemPathSource, etc.)

Public Attributes
name
path
source
Public Methods
class_file
class_name
klass Look up the generator class. Require its class file, find the class in ObjectSpace, tag it with this spec, and return.
new
Private Methods
lookup_class Search for the first Class descending from Rails::Generator::Base whose name matches the requested class name.
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.