Rails::Generator::Spec


Files

Parent

Description

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.)

Methods

Attributes

[R] [R] [R]

Public Class methods

new (name, path, source)

Public Instance 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.