Class: Hospodar::Builder::Wrapped
- Inherits:
-
Assembler
- Object
- Assembler
- Hospodar::Builder::Wrapped
- Defined in:
- lib/hospodar/builder/wrapped.rb
Overview
Implements wrap(&block) strategy in schemas
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(factory, on_exception, delegate) ⇒ Wrapped
constructor
A new instance of Wrapped.
- #on_building(receiver, plan, &on_create) ⇒ Object
- #on_planing(receiver) ⇒ Object
Constructor Details
#initialize(factory, on_exception, delegate) ⇒ Wrapped
7 8 9 10 |
# File 'lib/hospodar/builder/wrapped.rb', line 7 def initialize(factory, on_exception, delegate) super(factory, on_exception) @delegate = delegate end |
Instance Method Details
#on_building(receiver, plan, &on_create) ⇒ Object
16 17 18 |
# File 'lib/hospodar/builder/wrapped.rb', line 16 def on_building(receiver, plan, &on_create) building_steps(receiver, plan, &on_create) end |
#on_planing(receiver) ⇒ Object
12 13 14 |
# File 'lib/hospodar/builder/wrapped.rb', line 12 def on_planing(receiver) execution_plan(receiver, &dsl_block) end |