Class: ConvenientService::RSpec::Helpers::Classes::IgnoringException

Inherits:
Support::Command
  • Object
show all
Defined in:
lib/convenient_service/rspec/helpers/classes/ignoring_exception.rb,
lib/convenient_service/rspec/helpers/classes/ignoring_exception/exceptions.rb

Defined Under Namespace

Modules: Exceptions

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Support::Command

[], call

Constructor Details

#initialize(exception, &block) ⇒ IgnoringException

Returns a new instance of IgnoringException.

Parameters:

  • exception (StandardError)
  • block (Proc)


31
32
33
34
# File 'lib/convenient_service/rspec/helpers/classes/ignoring_exception.rb', line 31

def initialize(exception, &block)
  @exception = exception
  @block = block
end

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



25
26
27
# File 'lib/convenient_service/rspec/helpers/classes/ignoring_exception.rb', line 25

def block
  @block
end

#exceptionObject (readonly)

Returns the value of attribute exception.



19
20
21
# File 'lib/convenient_service/rspec/helpers/classes/ignoring_exception.rb', line 19

def exception
  @exception
end

Instance Method Details