Class: Acrylic::ErrorRoute
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Attributes inherited from Route
Instance Method Summary collapse
-
#initialize(code, args, handler) ⇒ ErrorRoute
constructor
A new instance of ErrorRoute.
- #match?(code, req) ⇒ Boolean
Methods inherited from Route
Constructor Details
#initialize(code, args, handler) ⇒ ErrorRoute
Returns a new instance of ErrorRoute.
14 15 16 17 |
# File 'lib/cascade/errors.rb', line 14 def initialize code, args, handler @code = code super args, handler end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
12 13 14 |
# File 'lib/cascade/errors.rb', line 12 def code @code end |
Instance Method Details
#match?(code, req) ⇒ Boolean
19 20 21 |
# File 'lib/cascade/errors.rb', line 19 def match? code, req (@code == code) and super req end |