method
to_proc
1.1.4 -
Show latest stable
- Class:
Spec::Story::Runner::StoryMediator::Scenario
to_proc()public
No documentation available.
# File lib/spec/story/runner/story_mediator.rb, line 90
def to_proc
name = @name
steps = @steps.collect { |step| step.to_proc }
lambda do
Scenario name do
steps.each { |step| instance_eval(&step) }
end
end
end