Class: Codebreaker::Console

Inherits:
Object
  • Object
show all
Defined in:
lib/codebreaker/console.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#difficulty_nameObject (readonly)

Returns the value of attribute difficulty_name.



6
7
8
# File 'lib/codebreaker/console.rb', line 6

def difficulty_name
  @difficulty_name
end

#gameObject (readonly)

Returns the value of attribute game.



6
7
8
# File 'lib/codebreaker/console.rb', line 6

def game
  @game
end

Instance Method Details

#welcomeObject



8
9
10
11
# File 'lib/codebreaker/console.rb', line 8

def welcome
  output(:welcome)
  welcome_instructions
end