module XSpec::Evaluator

Constants

DEFAULT
EvaluateFailed

As long as the `Top` evaluator is used, evaluators can raise `EvaluateFailed` to indicate a failure separate from a normal code exception.

Public Class Methods

stack(&block) click to toggle source

A stack is typically book-ended by the top and bottom evaluators, so this helper is the most commond way to build up a custom stack.

# File lib/xspec/evaluators.rb, line 12
def self.stack(&block)
  Module.new do
    include Bottom
    instance_exec &block
    include Top
  end
end