Sha256: d39db2249f255daa97eb4a657aad3b822ea73a863fce1e5ad56fcd0919943147
Contents?: true
Size: 365 Bytes
Versions: 1
Compression:
Stored size: 365 Bytes
Contents
module Blundersaur module Keyboards module Qwerty ROWS = [ nil, ?q, ?w, ?e, ?r, ?t, ?y, ?u, ?i, ?o, ?p, nil, nil, ?a, ?s, ?d, ?f, ?g, ?h, ?j, ?k, ?l, nil, nil, ?z, ?x, ?c, ?v, ?b, ?n, ?m, nil ] def self.keys_near(char) i = ROWS.index(char) ROWS.values_at(i-1, i+1).compact end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blundersaur-0.0.0 | lib/blundersaur/keyboards/qwerty.rb |