Class: Brut::FrontEnd::Routing::MissingPath
- Defined in:
- lib/brut/front_end/routing.rb
Instance Attribute Summary collapse
-
#exception ⇒ Object
readonly
Returns the value of attribute exception.
Attributes inherited from Route
#handler_class, #http_method, #path_template
Instance Method Summary collapse
-
#initialize(method, path_template, ex) ⇒ MissingPath
constructor
A new instance of MissingPath.
Methods inherited from Route
#==, #path, #path_params, #url
Constructor Details
#initialize(method, path_template, ex) ⇒ MissingPath
Returns a new instance of MissingPath.
354 355 356 357 358 359 360 361 362 363 364 |
# File 'lib/brut/front_end/routing.rb', line 354 def initialize(method,path_template,ex) @http_method = Brut::FrontEnd::HttpMethod.new(method) @path_template = path_template @handler_class = begin handler_class = Class.new(Brut::FrontEnd::Handlers::MissingHandler) compressed_class_name = ex.class_name_path.join Module.const_set(:"BrutMissingHandlers#{compressed_class_name}",handler_class) handler_class end @exception = ex end |
Instance Attribute Details
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
353 354 355 |
# File 'lib/brut/front_end/routing.rb', line 353 def exception @exception end |