Class: AlexCodebreaker::SecretCodeGenerator
- Inherits:
-
Object
- Object
- AlexCodebreaker::SecretCodeGenerator
- Defined in:
- lib/alex_codebreaker/secret_code_generator.rb
Instance Attribute Summary collapse
-
#secret_code ⇒ Object
readonly
Returns the value of attribute secret_code.
Instance Method Summary collapse
-
#initialize ⇒ SecretCodeGenerator
constructor
A new instance of SecretCodeGenerator.
Constructor Details
#initialize ⇒ SecretCodeGenerator
Returns a new instance of SecretCodeGenerator.
5 6 7 |
# File 'lib/alex_codebreaker/secret_code_generator.rb', line 5 def initialize @secret_code = generate_secret_code end |
Instance Attribute Details
#secret_code ⇒ Object (readonly)
Returns the value of attribute secret_code.
3 4 5 |
# File 'lib/alex_codebreaker/secret_code_generator.rb', line 3 def secret_code @secret_code end |