Class: Web::Wiki::Request::Action
Overview
:nodoc:
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #call(request) ⇒ Object
-
#initialize(name, &action) ⇒ Action
constructor
A new instance of Action.
Constructor Details
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
392 393 394 |
# File 'lib/web/wiki.rb', line 392 def name @name end |
Instance Method Details
#call(request) ⇒ Object
399 400 401 402 403 404 405 406 407 408 409 410 |
# File 'lib/web/wiki.rb', line 399 def call( request ) if (self.name == "default") request.content_template = request.page.template else request.content_template = self.name + ".html" end @action.call(request) if @action if ( [ "illustration.html", "images.html" ].include? request.content_template ) request.template = request.content_template end end |