module Roda::RodaPlugins::HashRoutes::ClassMethods
def hash_routes(namespace='', &block)
block does not accept an argument, instance_exec the block in the context
block. If the block accepts an argument, yield the DSL instance. If the
Invoke the DSL for configuring hash routes, see DSL for methods inside the
def hash_routes(namespace='', &block) dsl = DSL.new(self, namespace) if block if block.arity == 1 yield dsl else dsl.instance_exec(&block) end end dsl end