Class: Wings::Application

Inherits:
Object show all
Defined in:
lib/wings.rb

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



10
11
12
13
# File 'lib/wings.rb', line 10

def call(env)
  rack_app = get_rack_app(env)
  rack_app.call(env)
end

#route(&block) ⇒ Object



15
16
17
18
# File 'lib/wings.rb', line 15

def route(&block)
  @route_obj ||= Route.new
  @route_obj.instance_eval(&block)
end