class Screenplay::PromptActor

Public Instance Methods

play(params, input) click to toggle source
# File lib/screenplay/actors/prompt.rb, line 8
def play(params, input)
        output = input
        params.each { | key, title |
                output[key] = ask(title.replace_vars(input) + ': ') #{ | q | q.echo = true }
        }
        return output
end