Class: WordToGuess
- Inherits:
-
Object
- Object
- WordToGuess
- Defined in:
- lib/word_to_guess.rb
Overview
Class to model the word to guess
Instance Attribute Summary collapse
-
#word ⇒ Object
readonly
Returns the value of attribute word.
Instance Method Summary collapse
-
#initialize(word) ⇒ WordToGuess
constructor
A new instance of WordToGuess.
Constructor Details
#initialize(word) ⇒ WordToGuess
Returns a new instance of WordToGuess.
7 8 9 |
# File 'lib/word_to_guess.rb', line 7 def initialize(word) @word = word end |
Instance Attribute Details
#word ⇒ Object (readonly)
Returns the value of attribute word.
5 6 7 |
# File 'lib/word_to_guess.rb', line 5 def word @word end |