Class: Lookout::Expectations::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/lookout-3.0/expectations/context.rb

Overview

Context in which expectations blocks are evaluated. Plug-ins may add private methods to this class to make them available to expectations blocks.

Instance Method Summary collapse

Constructor Details

#initialize {|expect| ... } ⇒ Context

Sets up a context in which the given block will be passed each expect block found in the expectations blocks evaluated in this context via

#instance_eval.

Yield Parameters:



10
# File 'lib/lookout-3.0/expectations/context.rb', line 10

def initialize(&block) @block = block end