method
draw
v3.0.9 -
Show latest stable
- Class:
ActionDispatch::Routing::RouteSet
draw(&block)public
No documentation available.
# File actionpack/lib/action_dispatch/routing/route_set.rb, line 226
def draw(&block)
clear! unless @disable_clear_and_finalize
mapper = Mapper.new(self)
if block.arity == 1
mapper.instance_exec(DeprecatedMapper.new(self), &block)
else
mapper.instance_exec(&block)
end
finalize! unless @disable_clear_and_finalize
nil
end