Class: ContextSpook::Generator
- Inherits:
-
Object
- Object
- ContextSpook::Generator
- Defined in:
- lib/context_spook/generator.rb
Overview
The Generator class provides a DSL parser that interprets context definition files and constructs structured context objects containing project metadata, file contents, command outputs, and variables for AI assistance.
Defined Under Namespace
Classes: Context
Instance Method Summary collapse
-
#context(&block) ⇒ Context
The context method creates or returns a context object.
-
#initialize(&block) ⇒ Generator
constructor
The initialize method sets up the object by evaluating the provided block in the object’s context.
Constructor Details
#initialize(&block) ⇒ Generator
The initialize method sets up the object by evaluating the provided block in the object’s context.
37 38 39 |
# File 'lib/context_spook/generator.rb', line 37 def initialize(&block) block and instance_eval(&block) end |