Class: Ww::Application

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/ww/application.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(&servlet_initializer) ⇒ Application

Returns a new instance of Application.



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

def initialize(&servlet_initializer)
  @servlet_initializer = servlet_initializer
  reset!
end

Instance Attribute Details

#currentObject (readonly)

Returns the value of attribute current.



7
8
9
# File 'lib/ww/application.rb', line 7

def current
  @current
end

Instance Method Details

#reset!Object



15
16
17
# File 'lib/ww/application.rb', line 15

def reset!
  @current = build_servlet
end