Exception: Yay::NotAllowedError
- Defined in:
- lib/yay/errors.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(action, path) ⇒ NotAllowedError
constructor
A new instance of NotAllowedError.
- #printable_message ⇒ Object
Methods inherited from Error
Constructor Details
#initialize(action, path) ⇒ NotAllowedError
Returns a new instance of NotAllowedError.
37 38 39 40 |
# File 'lib/yay/errors.rb', line 37 def initialize action, path @action = action @path = path end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
34 35 36 |
# File 'lib/yay/errors.rb', line 34 def action @action end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
35 36 37 |
# File 'lib/yay/errors.rb', line 35 def path @path end |
Instance Method Details
#printable_message ⇒ Object
42 43 44 |
# File 'lib/yay/errors.rb', line 42 def return "You can't #{action} from here" end |