class Tagline::CharacterReader
Constants
- CTRL_X
- DOWN
- N
- UP
Public Class Methods
run_loop(*args)
click to toggle source
# File lib/tagline/character_reader.rb, line 7 def self.run_loop(*args) new(*args).run_loop end
Public Instance Methods
run_loop()
click to toggle source
# File lib/tagline/character_reader.rb, line 16 def run_loop before_loop loop do case char = get_character.ord when UP up_key when DOWN down_key when N n_key when CTRL_X break else tag(char) end end ensure after_loop exit end