Exception: Castanaut::Exceptions::SkipError

Inherits:
CastanautError show all
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

Constructor Details

#initialize(options = {}) ⇒ SkipError

Returns a new instance of SkipError.



40
41
42
# File 'lib/castanaut/exceptions.rb', line 40

def initialize(options = {})
  @quiet = true  if options[:quiet]
end

Instance Method Details

#quiet?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/castanaut/exceptions.rb', line 44

def quiet?
  @quiet ? true : false
end