Sha256: a9026d7683520c338aec8d2e7047cf2da7e3f28248596bb8fb8e279723c6993e

Contents?: true

Size: 416 Bytes

Versions: 2

Compression:

Stored size: 416 Bytes

Contents

require_relative 'lib/tuvi.rb'

class Example

  extend Tuvi

  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 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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tuvi-0.0.2 example.rb
tuvi-0.0.1 example.rb