Class: Crspec::Example::ExampleInvocation
- Inherits:
-
Object
- Object
- Crspec::Example::ExampleInvocation
- Defined in:
- lib/crspec/example.rb
Instance Method Summary collapse
- #execute! ⇒ Object (also: #run, #call)
-
#initialize(runner_proc) ⇒ ExampleInvocation
constructor
A new instance of ExampleInvocation.
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 |