method
to_proc
1.1.12 -
Show latest stable
-
0 notes -
Class: Spec::Story::Runner::StoryMediator::Story
- 1.1.4 (0)
- 1.1.12 (0)
- 1.2.0
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
to_proc()
public
Hide source
# File lib/spec/story/runner/story_mediator.rb, line 71 def to_proc title = @title narrative = @narrative scenarios = @scenarios.collect { |scenario| scenario.to_proc } options = @options.merge(:steps_for => @step_group) lambda do Story title, narrative, options do scenarios.each { |scenario| instance_eval(&scenario) } end end end