Class: Brut::FrontEnd::Routing::MissingPage
- 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(path_template, ex) ⇒ MissingPage
constructor
A new instance of MissingPage.
Methods inherited from Route
#==, #path, #path_params, #url
Constructor Details
#initialize(path_template, ex) ⇒ MissingPage
Returns a new instance of MissingPage.
302 303 304 305 306 307 308 309 310 311 312 |
# File 'lib/brut/front_end/routing.rb', line 302 def initialize(path_template,ex) @http_method = Brut::FrontEnd::HttpMethod.new(:get) @path_template = path_template @handler_class = begin page_class = Class.new(Brut::FrontEnd::Pages::MissingPage) compressed_class_name = ex.class_name_path.join Module.const_set(:"BrutMissingPages#{compressed_class_name}",page_class) page_class end @exception = ex end |
Instance Attribute Details
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
301 302 303 |
# File 'lib/brut/front_end/routing.rb', line 301 def exception @exception end |