Class: Core::Handler::Compiler

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

Overview

public

Class Method Summary collapse

Class Method Details

.compile(callable) ⇒ Object

public


11
12
13
14
15
16
17
# File 'lib/core/handler/compiler.rb', line 11

def compile(callable)
  "    def trigger(object, event, ...)\n    \#{compile_trigger(callable)}\n    end\n  CODE\nend\n"