Class: Ww::Application
- Inherits:
-
Object
- Object
- Ww::Application
- Extended by:
- Forwardable
- Defined in:
- lib/ww/application.rb
Instance Attribute Summary collapse
-
#current ⇒ Object
readonly
Returns the value of attribute current.
Instance Method Summary collapse
-
#initialize(&servlet_initializer) ⇒ Application
constructor
A new instance of Application.
- #reset! ⇒ Object
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
#current ⇒ Object (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 |