Class: BasicAssumption::DefaultAssumption::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/basic_assumption/default_assumption/base.rb

Overview

Provides the default behavior out of the box for calls to BasicAssumption#assume. block is a method that returns a Proc instance.

Instance Method Summary collapse

Instance Method Details

#blockObject

Returns a proc that accepts an argument (which is, in practice, the name that was passed to BasicAssumption#assume) and returns nil.



8
9
10
# File 'lib/basic_assumption/default_assumption/base.rb', line 8

def block
  Proc.new { |name, context| }
end