module Sinatra
def self.new(base = Base, &block)
def self.new(base = Base, &block) base = Class.new(base) base.class_eval(&block) if block_given? base end
def self.new(base = Base, &block) base = Class.new(base) base.class_eval(&block) if block_given? base end