@@ -137,8 +137,8 @@ class << self
137137 # @param block [Proc] The function code as a proc.
138138 # @return [self]
139139 #
140- def http name = DEFAULT_TARGET , &block
141- global_registry . add_http name , &block
140+ def http ( name = DEFAULT_TARGET , &)
141+ global_registry . add_http ( name , &)
142142 self
143143 end
144144
@@ -167,8 +167,8 @@ def http name = DEFAULT_TARGET, &block
167167 # @param block [Proc] The function code as a proc @return [self]
168168 # @return [self]
169169 #
170- def typed name = DEFAULT_TARGET , request_class : nil , &block
171- global_registry . add_typed name , request_class : request_class , &block
170+ def typed ( name = DEFAULT_TARGET , request_class : nil , &)
171+ global_registry . add_typed ( name , request_class : request_class , &)
172172 self
173173 end
174174
@@ -190,8 +190,8 @@ def typed name = DEFAULT_TARGET, request_class: nil, &block
190190 # @param block [Proc] The function code as a proc.
191191 # @return [self]
192192 #
193- def cloud_event name = DEFAULT_TARGET , &block
194- global_registry . add_cloud_event name , &block
193+ def cloud_event ( name = DEFAULT_TARGET , &)
194+ global_registry . add_cloud_event ( name , &)
195195 self
196196 end
197197
@@ -211,8 +211,8 @@ def cloud_event name = DEFAULT_TARGET, &block
211211 # @param block [Proc] The startup task
212212 # @return [self]
213213 #
214- def on_startup & block
215- global_registry . add_startup_task ( &block )
214+ def on_startup ( & )
215+ global_registry . add_startup_task ( &)
216216 self
217217 end
218218
@@ -227,7 +227,7 @@ def on_startup &block
227227 # manipulated to configure the server.
228228 # @return [FunctionsFramework::Server]
229229 #
230- def start target , &block
230+ def start ( target , &)
231231 require "functions_framework/server"
232232 if target . is_a? ::FunctionsFramework ::Function
233233 function = target
@@ -236,7 +236,7 @@ def start target, &block
236236 raise ::ArgumentError , "Undefined function: #{ target . inspect } " if function . nil?
237237 end
238238 globals = function . populate_globals
239- server = Server . new function , globals , &block
239+ server = Server . new ( function , globals , &)
240240 global_registry . startup_tasks . each do |task |
241241 task . call function , globals : globals , logger : server . config . logger
242242 end
@@ -255,8 +255,8 @@ def start target, &block
255255 # manipulated to configure the server.
256256 # @return [self]
257257 #
258- def run target , &block
259- server = start target , &block
258+ def run ( target , &)
259+ server = start ( target , &)
260260 server . wait_until_stopped
261261 self
262262 end
0 commit comments