module Middleman::CoreExtensions::Request::ServerMethods
Public Instance Methods
server(&block)
click to toggle source
Create a new Class which is based on Middleman::Application
Used to create a safe sandbox into which extensions and configuration can be included later without impacting other classes and instances.
@return [Class]
# File lib/middleman-core/core_extensions/request.rb, line 133 def server(&block) @@servercounter ||= 0 @@servercounter += 1 const_set("MiddlemanApplication#{@@servercounter}", Class.new(Middleman::Application)) end