Class: Oldskool::ErrorHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/oldskool/error_handler.rb

Instance Method Summary collapse

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