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) " def call(object, ...)\n \#{compile_call(callable, object)}\n rescue Core::Pipeline::Signals::Halted => error\n error.value\n end\n CODE\nend\n" |