Implement `ask' recipe keyword

This commit is contained in:
Thibault Jouan committed 2014-01-21 00:52:44 +00:00
1 parent 70109615c8
commit 7e062e06a1
7 files changed
+114 -1

No files matched your search

+4
View File
@@ -32,6 +32,10 @@ module Producer
@condition = Condition.evaluate(@env, &block) if block
@condition
end
def ask(question, choices, prompter: Prompter)
prompter.new(env.input, env.output).prompt(question, choices)
end
end
end
end