Sha256: 17678ab8b7f814485e145df25c6798ddd80294c527023f33dd5b707e3dc5a148
Contents?: true
Size: 420 Bytes
Versions: 2
Compression:
Stored size: 420 Bytes
Contents
class Step attr_accessor :position, :answer_paths, :exit_program def initialize(position, &block) @position = position @answer_paths = {} instance_eval(&block) if block_given? end def message(text) @message = text end def get_message @message end def answer(input, step_number) @answer_paths[input.downcase] = step_number end def stop @exit_program = true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tuvi-0.0.2 | lib/tuvi/step.rb |
tuvi-0.0.1 | lib/tuvi/step.rb |