Class: Lookout::Expectations::Context
- 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
-
#initialize {|expect| ... } ⇒ Context
constructor
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.
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.
10 |
# File 'lib/lookout-3.0/expectations/context.rb', line 10 def initialize(&block) @block = block end |