Method: Mobb.new
- Defined in:
- lib/mobb/base.rb
.new(base = Base, &block) ⇒ Object
Create a new Mobb application; the block is evaluated in the class scope.
531 532 533 534 535 |
# 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 |