lib/dialog_tui.rb in dialog_tui-0.1.0 vs lib/dialog_tui.rb in dialog_tui-0.1.1
- old
+ new
@@ -83,16 +83,16 @@
def chosen? option
@current == option # so current or chosen?)
end
- private
def option text, &reaction
option = Option.new self, text, &reaction # order?
@options.push option
end
+ private
def print_options
puts '-'*10
@options.each &:print
puts '-'*10
end
@@ -169,9 +169,12 @@
}
end
end
+ puts '-----'
+ puts '3 times - choose any option:'
+ puts '-----'
puts 'manual testing here - use arrows and enter'
puts 'no way to fail it - just look at behavior'
3.times { My.new.act }
end