Class: RubiGen::Spec

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

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.

usage_file()
visible?()

[Validate]