Class: Core::Pipeline::Compiler
- Inherits:
-
Object
- Object
- Core::Pipeline::Compiler
- Defined in:
- lib/core/pipeline/compiler.rb
Overview
- public
-
Compiles a pipeline into evalable code.
Class Method Summary collapse
-
.compile(callable, object) ⇒ Object
- public
-
Compiles a callable pipeline in context of an object.
Class Method Details
.compile(callable, object) ⇒ Object
- public
-
Compiles a callable pipeline in context of an object.
14 15 16 17 18 19 20 21 22 |
# File 'lib/core/pipeline/compiler.rb', line 14 def compile(callable, object) <<~CODE def call(object, ...) #{compile_call(callable, object)} rescue Core::Pipeline::Signals::Halted => error error.value end CODE end |