added postfix/suffix example to the README

This commit is contained in:
Georg G 2015-06-09 19:12:12 +02:00
parent 85d12db998
commit 9883c61b9f
1 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,10 @@ puts QuestionGenerator.generate
# You can also specify the locale, if you want to # You can also specify the locale, if you want to
puts QuestionGenerator.generate locale: :de puts QuestionGenerator.generate locale: :de
# => "Was war das letzte, das du gegessen hast?" # => "Was war das letzte, das du gegessen hast?"
# You can also specify an own prefix or suffix:
puts QuestionGenerator.generate locale: :fr, prefix: '[FR] ', suffix: ' ?'
# => "[FR] Quelle est la personne la plus célèbre que vous avez rencontrée ?"
``` ```
## How it works ## How it works