Module: Middleman::CoreExtensions::Request::CompatibleClassMethods

Defined in:
lib/middleman-core/core_extensions/request.rb

Instance Method Summary collapse

Instance Method Details

#server(&block) ⇒ Class

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.

Returns:

  • (Class)


147
148
149
# File 'lib/middleman-core/core_extensions/request.rb', line 147

def server(&block)
  ::Middleman::Application.server
end