Class RubiGen::Spec
In: lib/rubigen/spec.rb
Parent: Object

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

class_file   class_name   klass   new   usage_file   visible?  

Attributes

name  [R] 
path  [R] 
source  [R] 

Public Class methods

Public Instance methods

Look up the generator class. Require its class file, find the class in ObjectSpace, tag it with this spec, and return.

[Validate]