Module: Treaty::Action::Context::Workspace
- Defined in:
- lib/treaty/action/context/workspace.rb
Overview
Instance methods for treaty execution context.
Purpose
Provides instance-level methods that bridge between Callable (class methods) and Versions::Workspace (actual execution). Stores the collection_of_versions in instance variable for use by Versions::Workspace.
Usage
Included via:
- Context::DSL (when DSL is included)
Method Chain
Callable.call! (class)
Why Two Methods?
_call!- Entry point from Callable, receives raw parameterscall!- Stores collection_of_versions, then calls super
The separation allows Versions::Workspace to override call!
while keeping the parameter passing clean.
Instance Variable
Stores @collection_of_versions which is used by
Versions::Workspace.call! for version resolution.