Class: Azuma::CLI
- Inherits:
-
Object
- Object
- Azuma::CLI
- Defined in:
- lib/azuma/cli.rb
Class Method Summary collapse
Class Method Details
.start(talkers, language) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/azuma/cli.rb', line 5 def self.start(talkers, language) language ||= 'en' azuma = Azuma.entry(talkers, language) Signal.trap(:EXIT) { puts; exit! } puts 'Ctrl-D to exit' while Readline.readline('> press enter to show next talker', true) break unless azuma.next_talker end end |