Module: XSpec::Evaluator::Bottom

Defined in:
lib/xspec/evaluators.rb

Overview

The bottom evaluator executes the unit of work, with no error handling or extra behaviour. By separating this, all other evaluators layered on top of this one can just call ‘super`, making them easy to compose.

Instance Method Summary collapse

Instance Method Details

#call(unit_of_work) ⇒ Object



24
25
26
27
# File 'lib/xspec/evaluators.rb', line 24

def call(unit_of_work)
  instance_exec(&unit_of_work.block)
  []
end