Class: Codebreaker::Console
- Inherits:
-
Object
- Object
- Codebreaker::Console
- Includes:
- Storage
- Defined in:
- lib/codebreaker/console.rb
Constant Summary
Constants included from Storage
Storage::FILE_NAME, Storage::PATH
Instance Attribute Summary collapse
-
#game ⇒ Object
readonly
Returns the value of attribute game.
-
#guess ⇒ Object
readonly
Returns the value of attribute guess.
-
#player ⇒ Object
readonly
Returns the value of attribute player.
Instance Method Summary collapse
Methods included from Storage
#load_database, #save, #sort_player
Instance Attribute Details
#game ⇒ Object (readonly)
Returns the value of attribute game.
6 7 8 |
# File 'lib/codebreaker/console.rb', line 6 def game @game end |
#guess ⇒ Object (readonly)
Returns the value of attribute guess.
6 7 8 |
# File 'lib/codebreaker/console.rb', line 6 def guess @guess end |
#player ⇒ Object (readonly)
Returns the value of attribute player.
6 7 8 |
# File 'lib/codebreaker/console.rb', line 6 def player @player end |
Instance Method Details
#welcome_message ⇒ Object
8 9 10 11 |
# File 'lib/codebreaker/console.rb', line 8 def output(:welcome_message) run end |