Class: Wordle::Legend

Inherits:
Object
  • Object
show all
Defined in:
lib/wordle/legend.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(result_builder = ResultBuilder.new) ⇒ Legend

Returns a new instance of Legend.



9
10
11
# File 'lib/wordle/legend.rb', line 9

def initialize(result_builder = ResultBuilder.new)
  @result_builder = result_builder
end

Class Method Details



5
6
7
# File 'lib/wordle/legend.rb', line 5

def self.print(*args)
  new(*args).print
end

Instance Method Details



13
14
15
16
17
18
19
# File 'lib/wordle/legend.rb', line 13

def print
  puts match_example
  puts included_example
  puts miss_example
  puts "\nRestart and add -i flag to target a specific word by hash, for example:"
  puts "$ wordle -i ed541a\n\n"
end