Class: Ww::Servlet

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/ww/servlet.rb

Class Method Summary collapse

Class Method Details

.base(&block) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/ww/servlet.rb', line 9

def base(&block)
  Class.new(self).tap do |k|
    k.extend Double
    k.extend MonitorMixin
    k.class_eval(&block)
  end
end