Class: Crspec::Example::ExampleInvocation

Inherits:
Object
  • Object
show all
Defined in:
lib/crspec/example.rb

Instance Method Summary collapse

Constructor Details

#initialize(runner_proc) ⇒ ExampleInvocation

Returns a new instance of ExampleInvocation.



47
48
49
# File 'lib/crspec/example.rb', line 47

def initialize(runner_proc)
  @runner_proc = runner_proc
end

Instance Method Details

#execute!Object Also known as: run, call



51
52
53
# File 'lib/crspec/example.rb', line 51

def execute!
  @runner_proc.call
end