Method: KeyboardMap#run
- Defined in:
- lib/keyboard_map.rb
#run ⇒ Object
223 224 225 226 227 228 229 230 231 232 233 234 235 |
# File 'lib/keyboard_map.rb', line 223 def run out = [] while !@buf.empty? ch = @buf.slice!(0) r = send(@state,ch) out.concat(Array(r)) if r end if !@tmp.empty? && @state == :text out << @tmp @tmp = "" end out end |