Class: KeyboardBattle::Keyboard
- Inherits:
-
Object
- Object
- KeyboardBattle::Keyboard
- Defined in:
- lib/keyboard_battle/keyboard.rb
Defined Under Namespace
Classes: Colemak, Dvorak, Qwerty
Constant Summary collapse
- LEFT_EFFORT =
%w(3 2 2 2 2 2 2 1 1 1 1 1 0 0 0 0 1 1 1 1 1 2 3 2 2 2 2 2 2 1 1 1 1 1 0 0 0 0 1 1 1 1 1 2).collect { |el| el.to_i }
- RIGHT_EFFORT =
%w(2 2 2 2 2 2 1 1 1 1 1 1 2 3 1 0 0 0 0 1 1 1 1 1 1 2 2 2 2 2 2 1 1 1 1 1 1 2 3 1 0 0 0 0 1 1 1 1 1 1).collect { |el| el.to_i }
- COMBINED_EFFORT =
LEFT_EFFORT + RIGHT_EFFORT
Class Method Summary collapse
Class Method Details
.all ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/keyboard_battle/keyboard.rb', line 6 def all [ KeyboardBattle::Keyboard::Qwerty, KeyboardBattle::Keyboard::Dvorak, KeyboardBattle::Keyboard::Colemak ] end |