module Mobb

Constants

VERSION

Public Class Methods

helpers(*extensions, &block) click to toggle source

Include the helper modules provided in Mobb's request context.

# File lib/mobb/base.rb, line 543
def self.helpers(*extensions, &block)
  Delegator.target.helpers(*extensions, &block)
end
new(base = Base, &block) click to toggle source

Create a new Mobb application; the block is evaluated in the class scope.

# File lib/mobb/base.rb, line 531
def self.new(base = Base, &block)
  base = Class.new(base)
  base.class_eval(&block) if block_given?
  base
end
register(*extensions, &block) click to toggle source

Extend the top-level DSL with the modules provided.

# File lib/mobb/base.rb, line 538
def self.register(*extensions, &block)
  Delegator.target.register(*extensions, &block)
end
use(*args, &block) click to toggle source

Use the middleware for classic applications.

# File lib/mobb/base.rb, line 548
def self.use(*args, &block)
  Delegator.target.use(*args, &block)
end