Class: Oldskool::ErrorHandler
- Inherits:
-
Object
- Object
- Oldskool::ErrorHandler
- Defined in:
- lib/oldskool/error_handler.rb
Instance Method Summary collapse
- #handle_request(k, q) ⇒ Object
-
#initialize(params, keyword, config) ⇒ ErrorHandler
constructor
A new instance of ErrorHandler.
Constructor Details
#initialize(params, keyword, config) ⇒ ErrorHandler
Returns a new instance of ErrorHandler.
3 4 5 6 7 8 |
# File 'lib/oldskool/error_handler.rb', line 3 def initialize(params, keyword, config) @params = params @keyword = keyword @config = config self end |
Instance Method Details
#handle_request(k, q) ⇒ Object
10 11 12 |
# File 'lib/oldskool/error_handler.rb', line 10 def handle_request(k, q) {:template => :error, :error => @keyword[:msg]} end |