Exception: Cuttlebone::InvalidContextError
- Inherits:
-
StandardError
- Object
- StandardError
- Cuttlebone::InvalidContextError
- Defined in:
- lib/cuttlebone/exceptions.rb
Overview
Raised when Controller is invoked with an invalid (not matching) context.
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
-
#initialize(context, *args, &block) ⇒ InvalidContextError
constructor
A new instance of InvalidContextError.
Constructor Details
#initialize(context, *args, &block) ⇒ InvalidContextError
Returns a new instance of InvalidContextError.
8 9 10 11 |
# File 'lib/cuttlebone/exceptions.rb', line 8 def initialize context, *args, &block @context = context super *args, &block end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
7 8 9 |
# File 'lib/cuttlebone/exceptions.rb', line 7 def context @context end |