Class: Gidget::Server

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/gidget/server.rb

Instance Method Summary collapse

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