Class: AlexCodebreaker::SecretCodeGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/alex_codebreaker/secret_code_generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSecretCodeGenerator

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_codeObject (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