Class: HexGenerator

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

Class Method Summary collapse

Class Method Details

.new_hexObject



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

def self.new_hex
  "#".tap { |hex| 6.times { hex << %w(a b c d e f 1 2 3 4 5 6 7 8 9).sample } } 
end