example_program.rb in tuvi-0.0.3 vs example_program.rb in tuvi-0.0.4

- old
+ new

@@ -1,26 +1,20 @@ require_relative 'lib/tuvi.rb' -class ExampleProgram +step 1 do + message "This is Step 1. Type yes to go to Step 2. Type no to go to Step 3." + answer "Yes", 2 + answer "No", 3 +end - extend Tuvi +step 2 do + message "This is Step 2. Type hi to go to Step 3. Type bye to go to step 1." + answer "Hi", 3 + answer "Bye", 1 +end - step 1 do - message "This is Step 1. Type yes to go to Step 2. Type no to go to Step 3." - answer "Yes", 2 - answer "No", 3 - end +step 3 do + message "You've reached the end!" + stop +end - step 2 do - message "This is Step 2. Type hi to go to Step 3. Type bye to go to step 1." - answer "Hi", 3 - answer "Bye", 1 - end - - step 3 do - message "You've reached the end!" - stop - end - - run - -end +run \ No newline at end of file