Class: Gidget::Server
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Gidget::Server
- Defined in:
- lib/gidget/server.rb
Instance Method Summary collapse
-
#initialize(app = nil, &block) ⇒ Server
constructor
A new instance of Server.
Constructor Details
#initialize(app = nil, &block) ⇒ Server
Returns a new instance of Server.
14 15 16 17 18 19 20 |
# File 'lib/gidget/server.rb', line 14 def initialize(app=nil, &block) super(app, &b=nil) Server.class_exec(&block) if block_given? # load the file mapper puts Benchmark.measure { FileMapper.instance.load } end |