Exception: Castanaut::Exceptions::SkipError
- Inherits:
-
CastanautError
- Object
- RuntimeError
- CastanautError
- Castanaut::Exceptions::SkipError
- Defined in:
- lib/castanaut/exceptions.rb
Overview
Allows you to skip the rest of a perform block (therefore usually raised if some condition fails). See Movie#skip for the shorthand.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ SkipError
constructor
A new instance of SkipError.
- #quiet? ⇒ Boolean
Constructor Details
#initialize(options = {}) ⇒ SkipError
Returns a new instance of SkipError.
40 41 42 |
# File 'lib/castanaut/exceptions.rb', line 40 def initialize( = {}) @quiet = true if [:quiet] end |
Instance Method Details
#quiet? ⇒ Boolean
44 45 46 |
# File 'lib/castanaut/exceptions.rb', line 44 def quiet? @quiet ? true : false end |