README.rdoc in larynx-0.1.4 vs README.rdoc in larynx-0.1.5
- old
+ new
@@ -210,9 +210,13 @@
together and define another form for unrelated fields.
Lets look at a simple Form class with empty callbacks in place.
class MyApp < Larynx::Form
+ setup do
+ # Run when the form is first run or restarted.
+ end
+
field(:my_field, :attempts => 3, :length => 1) do
prompt :speak => 'Please enter a value.'
setup do
# Run once when the field is starts.