Class: KeyboardBattle::Exercise
- Inherits:
-
Object
- Object
- KeyboardBattle::Exercise
- Defined in:
- lib/keyboard_battle/exercise.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#results ⇒ Object
Returns the value of attribute results.
Instance Method Summary collapse
-
#initialize(filename, keyboards) ⇒ Exercise
constructor
A new instance of Exercise.
Constructor Details
#initialize(filename, keyboards) ⇒ Exercise
Returns a new instance of Exercise.
6 7 8 9 10 |
# File 'lib/keyboard_battle/exercise.rb', line 6 def initialize(filename, keyboards) @filename = filename @keyboards = keyboards @results = run end |
Instance Attribute Details
#filename ⇒ Object
Returns the value of attribute filename.
4 5 6 |
# File 'lib/keyboard_battle/exercise.rb', line 4 def filename @filename end |
#results ⇒ Object
Returns the value of attribute results.
4 5 6 |
# File 'lib/keyboard_battle/exercise.rb', line 4 def results @results end |