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)
  <<~CODE
    def trigger(object, event, ...)
    #{compile_trigger(callable)}
    end
  CODE
end