@@ -5,10 +5,10 @@ module DSL
55 module Routing
66 attr_reader :endpoints
77
8- def given ( conditional_option , &block )
8+ def given ( conditional_option , &)
99 return unless conditional_option
1010
11- mounted ( &block )
11+ mounted ( &)
1212 end
1313
1414 def mounted ( &block )
@@ -157,7 +157,7 @@ def mount(mounts, *opts)
157157 # {hello: 'world'}
158158 # end
159159 # end
160- def route ( methods , paths = [ '/' ] , route_options = { } , &block )
160+ def route ( methods , paths = [ '/' ] , route_options = { } , &)
161161 method = methods == :any ? '*' : methods
162162 endpoint_params = inheritable_setting . namespace_stackable_with_hash ( :params ) || { }
163163 endpoint_description = inheritable_setting . route [ :description ]
@@ -171,7 +171,7 @@ def route(methods, paths = ['/'], route_options = {}, &block)
171171 path : paths ,
172172 for : self ,
173173 route_options : all_route_options ,
174- &block
174+ &
175175 )
176176 endpoints << new_endpoint unless endpoints . any? { |e | e . equals? ( new_endpoint ) }
177177
@@ -223,7 +223,7 @@ def routes
223223 #
224224 # @param param [Symbol] The name of the parameter you wish to declare.
225225 # @option options [Regexp] You may supply a regular expression that the declared parameter must meet.
226- def route_param ( param , **options , &block )
226+ def route_param ( param , **options , &)
227227 options = options . dup
228228
229229 options [ :requirements ] = {
@@ -234,7 +234,7 @@ def route_param(param, **options, &block)
234234 requires param , type : options [ :type ]
235235 end if options . key? ( :type )
236236
237- namespace ( ":#{ param } " , options , &block )
237+ namespace ( ":#{ param } " , options , &)
238238 end
239239
240240 # @return array of defined versions
0 commit comments