module Roda::RodaPlugins::HashRoutes::ClassMethods

def freeze

Freeze the hash_routes metadata when freezing the app.
def freeze
  opts[:hash_routes_methods].freeze
  super
end

def hash_routes(namespace='', &block)

of the DSL instance.
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