Class: Core::Pipeline::Compiler

Inherits:
Object
  • Object
show all
Defined in:
lib/core/pipeline/compiler.rb

Overview

public

Compiles a pipeline into evalable code.

Class Method Summary collapse

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"