Method: Enroute::Export#build_ts_handler_function

Defined in:
lib/enroute/export.rb

#build_ts_handler_function(route) ⇒ Object



67
68
69
70
# File 'lib/enroute/export.rb', line 67

def build_ts_handler_function(route)
  args = JSON.pretty_generate(route.except(:typings))
  %[const #{route[:name]}Handler = buildRoute(#{args});]
end