Class: Screenplay::PromptActor

Inherits:
Actor
  • Object
show all
Defined in:
lib/screenplay/actors/prompt.rb

Instance Attribute Summary

Attributes inherited from Actor

#name

Instance Method Summary collapse

Methods inherited from Actor

#configure, descendants, #initialize

Constructor Details

This class inherits a constructor from Screenplay::Actor

Instance Method Details

#play(params, input) ⇒ Object



8
9
10
11
12
13
14
# 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