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)


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

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